Pārlūkot izejas kodu

trace.h: include stdio.h only if trace is enabled

Ioannis Koutras 12 gadi atpakaļ
vecāks
revīzija
c51c7ff164
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      private-include/trace.h

+ 3 - 2
private-include/trace.h

@@ -1,5 +1,5 @@
 /*
- *   Copyright 2012 Institute of Communication and Computer Systems (ICCS) 
+ *   Copyright Institute of Communication and Computer Systems (ICCS) 
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");
  *   you may not use this file except in compliance with the License.
@@ -26,9 +26,10 @@
 #define TRACE_H
 #include "dmm_config.h"
 
+#if TRACE_LEVEL >= 1
+
 #include <stdio.h>
 
-#if TRACE_LEVEL >= 1
 /** Function for Level 1 trace messages */
 #define TRACE_1(...) fprintf(stderr, __VA_ARGS__)
 #else /* TRACE_LEVEL >= 1 */