Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill broken portability bits for visual and macosx
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 23 Oct 2007 13:45:58 +0000 (13:45 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 23 Oct 2007 13:45:58 +0000 (13:45 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4860 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/portable.h
src/win32/compiler/visualc.h

index 99de0b8..f56b81d 100644 (file)
@@ -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);
 
 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 */
 #endif /* GRAS_PORTABLE_H */
index a8af217..0bc76ea 100644 (file)
@@ -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 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
 #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++ 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__ */
 #endif /* #ifndef __XBT_VISUALC_COMPILER_CONFIG_H__ */