ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/platform.h
(Generate patch)

Comparing ray/src/common/platform.h (file contents):
Revision 3.15 by greg, Thu Dec 22 17:07:46 2016 UTC vs.
Revision 3.17 by greg, Wed May 22 15:37:31 2024 UTC

# Line 39 | Line 39
39    #define access _access
40    #undef mktemp
41    #define mktemp _mktemp
42 +  #define fpurge(s)
43  
44    #include <string.h>
45    #undef strcasecmp
# Line 82 | Line 83
83    #define SET_FD_TEXT(fd) _setmode(fd,_O_TEXT)
84    #define putenv _putenv
85  
86 < #else /* _WIN32 || _WIN64 */
86 > #else /* ! (_WIN32 || _WIN64) */
87  
88    #ifdef AMIGA
89      #define NON_POSIX
# Line 93 | Line 94
94      #define RHAS_FORK_EXEC
95    #endif
96  
97 +  #ifdef __linux__
98 +        #include <stdio_ext.h>
99 +        #define fpurge  __fpurge
100 +  #endif
101    /* everybody except Windows */
102  
103    /* NOPs */
# Line 109 | Line 114
114   extern "C" {
115   #endif
116  
117 < /* nothing to protect yet */
117 > #if defined(_WIN32) || defined(_WIN64)
118 >
119 > extern  int     usleep(__int64 usec);
120 >
121 > #endif /* _WIN32 || _WIN64 */
122  
123   #ifdef __cplusplus
124   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines