summaryrefslogtreecommitdiff
path: root/FL/platform_types.h
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-06-23 17:04:18 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-06-23 17:04:18 +0000
commitb1598dc70362f331da7a65f1e5ddece7c88299f3 (patch)
treeb86ceda8b546d19b0bb1d4cfc7b8babdd53c3f3c /FL/platform_types.h
parenta9fd08ff5ab8bbf3838200ceace671a72627d212 (diff)
Removed macro FL_PORTING, as it has been more confusing than helpful.
The original intention of FL_PORTING was to mark all places in the source code where changes are required to port FLTK to a new platform. Thanks to the driver system, this approach has become somewhat misleading, so I removed all references. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/platform_types.h')
-rw-r--r--FL/platform_types.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/FL/platform_types.h b/FL/platform_types.h
index d90e37afa..771f611a9 100644
--- a/FL/platform_types.h
+++ b/FL/platform_types.h
@@ -134,24 +134,6 @@ typedef struct __GLXcontextRec *GLContext;
#include <sys/types.h>
#include <dirent.h>
-
-#elif defined(FL_PORTING)
-# pragma message "FL_PORTING: define OS-dependent types"
-typedef void* Fl_Offscreen;
-typedef void* Fl_Bitmask;
-typedef void *Fl_Region;
-typedef int FL_SOCKET;
-typedef void *GLContext;
-# pragma message "FL_PORTING: define struct dirent and implement scandir() for the platform"
-struct dirent {char d_name[1];};
-# pragma message "FL_PORTING: define struct stat and implement Fl_XXX_System_Driver::stat() for the platform"
-struct stat { /* the FLTK source code uses part of the stat() API */
- unsigned st_mode;
- unsigned st_size;
-};
-#define S_IFDIR 0040000 /* directory */
-#define S_IFREG 0100000 /* regular */
-
#else /* X11 */
typedef unsigned long Fl_Offscreen;