Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill obsolete code
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 7 Aug 2016 18:29:02 +0000 (20:29 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 7 Aug 2016 18:29:07 +0000 (20:29 +0200)
This seems to be an attempt to get windows running our library
constructors, that are used to create the structures such as log
channels before the main kicks in.

include/xbt/base.h
src/xbt/xbt_main.c

index 259c84c..4ecf84e 100644 (file)
@@ -58,7 +58,6 @@
 #  define _XBT_GNUC_CONSTRUCTOR(prio) __attribute__((__constructor__))
 #  define _XBT_GNUC_DESTRUCTOR(prio) __attribute__((__destructor__))
 # endif
-# undef _XBT_NEED_INIT_PRAGMA
 
 #if defined(__GNUC__)
 #   define XBT_ALWAYS_INLINE inline __attribute__ ((always_inline))
index 13ec9e3..026641b 100644 (file)
@@ -50,14 +50,6 @@ int xbt_pagebits = 0;
 static void xbt_preinit(void) _XBT_GNUC_CONSTRUCTOR(200);
 static void xbt_postexit(void);
 
-#ifdef _WIN32
-# undef _XBT_NEED_INIT_PRAGMA
-#endif
-
-#ifdef _XBT_NEED_INIT_PRAGMA
-#pragma init (xbt_preinit)
-#endif
-
 #ifdef _WIN32
 #include <windows.h>