mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 06:14:28 +08:00
Remove '#include <sys/stat.h>' from FL/platform_types.h
- Add this include statement only where needed. - Rename Fl_System_Driver::stat() to flstat(). This fixes an issue when using some (!) MinGW 64-bit build systems that obviously '#define stat _stat64' or similar. This would result in compiler problems if 'stat()' is a member function of Fl_System_Driver.
This commit is contained in:
+2
-1
@@ -29,7 +29,8 @@
|
||||
|
||||
#include "Fl_Export.H"
|
||||
#include "fl_types.h"
|
||||
#include <stdio.h> // FILE *fl_fopen()
|
||||
#include <stdio.h> // FILE *fl_fopen()
|
||||
#include <sys/stat.h> // struct stat
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -90,7 +90,6 @@ typedef int FL_SOCKET;
|
||||
typedef class NSOpenGLContext* GLContext;
|
||||
#endif /* __OBJC__ */
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
# define FL_COMMAND FL_META
|
||||
@@ -106,7 +105,6 @@ typedef unsigned __int64 FL_SOCKET; /* *FIXME* - FL_SOCKET (see above) */
|
||||
typedef int FL_SOCKET;
|
||||
# endif
|
||||
typedef struct HGLRC__ *GLContext;
|
||||
#include <sys/stat.h>
|
||||
#ifdef __MINGW32__
|
||||
# include <dirent.h>
|
||||
#else
|
||||
@@ -119,7 +117,6 @@ typedef struct flCairoRegion* Fl_Region;
|
||||
typedef int FL_SOCKET; /**< socket or file descriptor */
|
||||
typedef void *EGLContext;
|
||||
typedef EGLContext GLContext;
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
|
||||
@@ -129,7 +126,6 @@ typedef unsigned long Fl_Offscreen;
|
||||
typedef struct _XRegion *Fl_Region;
|
||||
typedef int FL_SOCKET;
|
||||
typedef struct __GLXcontextRec *GLContext;
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user