Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Windows does not find weak symbol
authornavarro <pierre.navarro@imag.fr>
Wed, 24 Oct 2012 15:45:24 +0000 (08:45 -0700)
committernavarro <pierre.navarro@imag.fr>
Thu, 25 Oct 2012 17:21:04 +0000 (10:21 -0700)
Fix compilation for smpi on WIN32

include/smpi/smpi.h

index 342bfc2..07dd2b0 100644 (file)
 #define sleep(x) smpi_sleep(x)
 #define gettimeofday(x, y) smpi_gettimeofday(x, y)
 
+#ifdef _WIN32
+#define MPI_CALL(type,name,args) \
+  type name args; \
+  type P##name args
+#else
 #define MPI_CALL(type,name,args) \
   type name args __attribute__((weak)); \
   type P##name args
+#endif
 
 SG_BEGIN_DECL()
 #define MPI_THREAD_SINGLE     0