comparison dwcompat.h @ 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 b02aa3947562
children 3816d76835e9
comparison
equal deleted inserted replaced
1859:b02aa3947562 1860:02a23143334c
398 #define socksprint(a, b) sockwrite(a, b, strlen(b), 0) 398 #define socksprint(a, b) sockwrite(a, b, strlen(b), 0)
399 399
400 char * API vargs(char *buf, int len, char *format, ...); 400 char * API vargs(char *buf, int len, char *format, ...);
401 int API makedir(char *path); 401 int API makedir(char *path);
402 void API setfileinfo(char *filename, char *url, char *logfile); 402 void API setfileinfo(char *filename, char *url, char *logfile);
403 #ifdef __MINGW32__
404 double API drivesize(int drive);
405 double API drivefree(int drive);
406 #else
403 long double API drivesize(int drive); 407 long double API drivesize(int drive);
404 long double API drivefree(int drive); 408 long double API drivefree(int drive);
409 #endif
405 int API isdrive(int drive); 410 int API isdrive(int drive);
406 void API getfsname(int drive, char *buf, int len); 411 void API getfsname(int drive, char *buf, int len);
407 FILE * API fsopen(char *path, char *modes); 412 FILE * API fsopen(char *path, char *modes);
408 int API fsclose(FILE *fp); 413 int API fsclose(FILE *fp);
409 char * API fsgets(char *str, int size, FILE *stream); 414 char * API fsgets(char *str, int size, FILE *stream);