Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to not specify any calling convention on windows
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 6 Mar 2016 08:26:32 +0000 (09:26 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 6 Mar 2016 08:26:32 +0000 (09:26 +0100)
include/xbt/base.h
src/simix/smx_global.cpp

index f79b495..8365b1d 100644 (file)
                          a16, a15, a14, a13, a12, a11, a10, a9,         \
                          a8, a7, a6, a5, a4, a3, a2, a1, N, ...) N
 
-/*
- * Function calling convention (not used for now)
- * http://unixwiz.net/techtips/win32-callconv.html <-- good documentation
- */
-
-#ifdef _WIN32
-#  ifndef _XBT_CALL
-#    define _XBT_CALL __cdecl
-#   endif
-#else
-#  define _XBT_CALL
-#endif
-
 /* Handle import/export stuff
  *
  * Rational of XBT_PUBLIC:
index 1bea3dd..1b89846 100644 (file)
@@ -40,8 +40,7 @@
 #endif
 
 XBT_LOG_NEW_CATEGORY(simix, "All SIMIX categories");
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_kernel, simix,
-                                "Logging specific to SIMIX (kernel)");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_kernel, simix, "Logging specific to SIMIX (kernel)");
 
 smx_global_t simix_global = NULL;
 static xbt_heap_t simix_timers = NULL;
@@ -63,7 +62,7 @@ static void SIMIX_synchro_mallocator_reset_f(void* synchro);
 #include <signal.h>
 
 int _sg_do_verbose_exit = 1;
-static void _XBT_CALL inthandler(int ignored)
+static void inthandler(int ignored)
 {
   if ( _sg_do_verbose_exit ) {
      XBT_INFO("CTRL-C pressed. The current status will be displayed before exit (disable that behavior with option 'verbose-exit').");