From ef0988cf8eb71517681c60a18a417f185bd602c4 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 23 Oct 2007 13:45:58 +0000 Subject: [PATCH] Kill broken portability bits for visual and macosx git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4860 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/portable.h | 16 ---------------- src/win32/compiler/visualc.h | 22 ---------------------- 2 files changed, 38 deletions(-) diff --git a/src/portable.h b/src/portable.h index 99de0b81ec..f56b81db8f 100644 --- a/src/portable.h +++ b/src/portable.h @@ -156,20 +156,4 @@ extern int vasnprintf(char **ptr, size_t str_m, const char *fmt, va_list ap); void hexa_print(const char*name, unsigned char *data, int size); const char *hexa_str(unsigned char *data, int size, int downside); - -#if defined(WIN32) -/* Visual C++ does not implements the gettimeofday() function */ -XBT_PUBLIC(int) -gettimeofday(struct timeval *tv, struct timezone *tz); -#endif - -#define HAVE_SEM_TIMEDWAIT 1 - -/* mac osx doesn't have the sem_timedwait() function */ -#if defined(__GNUC__) && ( defined(__APPLE_CPP__) || defined(__APPLE_CC__) || defined(__MACOS_CLASSIC__) ) -# -# undef HAVE_SEM_TIMEDWAIT -# -#endif - #endif /* GRAS_PORTABLE_H */ diff --git a/src/win32/compiler/visualc.h b/src/win32/compiler/visualc.h index a8af217c66..0bc76eaf49 100644 --- a/src/win32/compiler/visualc.h +++ b/src/win32/compiler/visualc.h @@ -412,12 +412,6 @@ the double. For now, GRAS requires the structures to be compacted. */ #define S_IWUSR _S_IWRITE #define S_IRUSR _S_IREAD -#define HAVE_STRUCT_TIMESPEC 0 - -#define HAVE_STRUCT_TM 1 - -#define HAVE_GETTIMEOFDAY 1 - #ifdef _WIN32_WINNT #if _WIN32_WINNT < 0x0400 #undef _WIN32_WINNT @@ -436,20 +430,4 @@ typedef unsigned int mode_t; /* Visual C++ does not declare the uint32_t type */ typedef unsigned int uint32_t; -/* Visual C++ doesn't declare the structure timespec */ -struct timespec -{ - long tv_sec; /* seconds */ - long tv_nsec; /* nanoseconds */ -}; - -/* Visual C++ doesn't declare the structure timezone : - *(a structure used to indicate the local time zone) - */ -struct timezone -{ - int tz_minuteswest; /* of Greenwich */ - int tz_dsttime; /* type of dst correction to apply */ -}; - #endif /* #ifndef __XBT_VISUALC_COMPILER_CONFIG_H__ */ -- 2.20.1