From: navarro Date: Wed, 24 Oct 2012 15:45:24 +0000 (-0700) Subject: Windows does not find weak symbol X-Git-Tag: v3_9_rc1~91^2~218^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/476b43e09340073b34d40afb0b9cacb8693aa767 Windows does not find weak symbol Fix compilation for smpi on WIN32 --- diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index 342bfc2108..07dd2b08fc 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -15,9 +15,15 @@ #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