-# ifndef _XBT_EXPORT_DECLSPEC
-# define _XBT_EXPORT_DECLSPEC
-# endif
-
-# ifndef _XBT_IMPORT_DECLSPEC
-# define _XBT_IMPORT_DECLSPEC
-# endif
-
-# if defined (_XBT_DESIGNATED_DLL) /* this is a lib which will contain xbt exports */
-# define _XBT_DECLSPEC _XBT_EXPORT_DECLSPEC
-# else
-# define _XBT_DECLSPEC _XBT_IMPORT_DECLSPEC /* other modules, importing xbt exports */
-# endif
-
-#else /* not using DLL export/import specifications */
-
-# define _XBT_DECLSPEC
+#if defined(WIN32)
+/* Visual C++ does not implements the gettimeofday() function */
+XBT_PUBLIC(int)
+gettimeofday(struct timeval *tv, struct timezone *tz);
+#endif