Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename BEGIN_DECL since we changed the usual definition to a macro with arguments...
[simgrid.git] / include / xbt / sysdep.h
index b917978..2c7c194 100644 (file)
 #include <string.h>
 #include <stdlib.h> 
 #include <stdio.h>
+#include <stdarg.h> /* va_list */
    
 #include "xbt/misc.h"
-#include "xbt/error.h"
+#include "xbt/asserts.h"
   
-BEGIN_DECL()
+SG_BEGIN_DECL()
+
 /** @addtogroup XBT_syscall
  *  @{
  */
@@ -94,8 +96,8 @@ static inline void *xbt_realloc(void*p,int s){
 
 /* FIXME: better place? */
 int vasprintf  (char **ptr, const char *fmt, va_list ap);
-char *bprintf(const char*fmt, ...);
-
-END_DECL()
+char *bprintf(const char*fmt, ...) _XBT_GNUC_PRINTF(1,2);
+  
+SG_END_DECL()
 
 #endif /* _XBT_SYSDEP_H */