#include <time.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int smpi_usleep(useconds_t usecs);
#if _POSIX_TIMERS > 0
int smpi_nanosleep(const struct timespec* tp, struct timespec* t);
#define getopt_long(x,y,z,a,b) smpi_getopt_long(x,y,z,a,b)
#define getopt_long_only(x,y,z,a,b) smpi_getopt_long_only(x,y,z,a,b)
+#ifdef __cplusplus
+} // extern "C"
+#endif
#endif
list_set CXXFLAGS "-std=gnu++11"
list_set LINKARGS "-std=gnu++11"
if [ "@WIN32@" != "1" ]; then
- # list_add CXXFLAGS "-Dmain=smpi_simulated_main_"
+ # list_add CXXFLAGS "-include" "@includedir@/smpi/smpi_helpers.h"
list_add CXXFLAGS "-fpic"
if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
list_add LINKARGS "-shared"