Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Current state. See changelog, sorry, I'm out of time
[simgrid.git] / include / xbt / log.h
index 5b92f13..d95838a 100644 (file)
 #undef GRAS_LOG_MAYDAY
 /*#define GRAS_LOG_MAYDAY*/
 
-
 #ifndef _GRAS_LOG_H_
 #define _GRAS_LOG_H_
 
 #include <stdarg.h>
 
+#include "xbt/sysdep.h"
+
 /**
  * gras_log_priority_t:
  * @gras_log_priority_none:          used internally (don't poke with)
@@ -131,7 +132,7 @@ typedef enum {
  * (used by macros that don't explicitly specify a category).
  */
 #define GRAS_LOG_NEW_DEFAULT_CATEGORY(cname,desc)        \
-    GRAS_LOG_NEW_CATEGORY(cname,desc)                    \
+    GRAS_LOG_NEW_CATEGORY(cname,desc);                   \
     GRAS_LOG_DEFAULT_CATEGORY(cname)
 
 /**
@@ -160,7 +161,7 @@ typedef enum {
 
 /* Functions you may call */
 
-extern gras_error_t gras_log_control_set(const char* cs);
+extern void gras_log_control_set(const char* cs);
 
 /* Forward declarations */
 typedef struct gras_log_appender_s gras_log_appender_t;