comparison dwcompat.c @ 1860:02a23143334c

Apparently Visual C's "long double" type is "double" for gcc... So when building with MinGW, we need to compile as "double" instead of "long double" to maintain ABI compatibility with Visual C compiled applications.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 01 Mar 2013 13:01:59 +0000
parents 22225eb286e5
children cb5f9aa9aebb
comparison
equal deleted inserted replaced
1859:b02aa3947562 1860:02a23143334c
92 dw_mutex_unlock(mutex); 92 dw_mutex_unlock(mutex);
93 return result; 93 return result;
94 } 94 }
95 #endif 95 #endif
96 96
97 #ifdef __MINGW32__
98 double API drivefree(int drive)
99 #else
97 long double API drivefree(int drive) 100 long double API drivefree(int drive)
101 #endif
98 { 102 {
99 #if defined(__EMX__) || defined(__OS2__) 103 #if defined(__EMX__) || defined(__OS2__)
100 ULONG aulFSInfoBuf[40] = {0}; 104 ULONG aulFSInfoBuf[40] = {0};
101 APIRET rc = NO_ERROR; 105 APIRET rc = NO_ERROR;
102 106
194 } 198 }
195 return 0; 199 return 0;
196 #endif 200 #endif
197 } 201 }
198 202
203 #ifdef __MINGW32__
204 double API drivesize(int drive)
205 #else
199 long double API drivesize(int drive) 206 long double API drivesize(int drive)
207 #endif
200 { 208 {
201 #if defined(__EMX__) || defined(__OS2__) 209 #if defined(__EMX__) || defined(__OS2__)
202 ULONG aulFSInfoBuf[40] = {0}; 210 ULONG aulFSInfoBuf[40] = {0};
203 APIRET rc = NO_ERROR; 211 APIRET rc = NO_ERROR;
204 212