From 476b43e09340073b34d40afb0b9cacb8693aa767 Mon Sep 17 00:00:00 2001 From: navarro Date: Wed, 24 Oct 2012 08:45:24 -0700 Subject: [PATCH] Windows does not find weak symbol Fix compilation for smpi on WIN32 --- include/smpi/smpi.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.20.1