summaryrefslogtreecommitdiff
path: root/FL/platform_types.h
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-13 10:48:14 +0000
committerManolo Gouy <Manolo>2016-04-13 10:48:14 +0000
commit562d29bd7cd57d657cdfa6ea9ed23c8948224c1f (patch)
tree579509dc3ae02fac98e2bfc348d977572d4f8ff7 /FL/platform_types.h
parentd92a0c396119f9d2566c633ee490ed93effd0ae1 (diff)
Remove platform-dependent code from Enumerations.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/platform_types.h')
-rw-r--r--FL/platform_types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/FL/platform_types.h b/FL/platform_types.h
index 000a9c910..9db3e46c7 100644
--- a/FL/platform_types.h
+++ b/FL/platform_types.h
@@ -30,6 +30,8 @@ typedef int FL_SOCKET;
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
+# define FL_COMMAND FL_META
+# define FL_CONTROL FL_CTRL
#elif defined(WIN32)
typedef struct HBITMAP__ *HBITMAP;
@@ -72,6 +74,12 @@ typedef int FL_SOCKET;
#endif /* __APPLE__ */
+
+#ifndef __APPLE__
+# define FL_COMMAND FL_CTRL ///< An alias for FL_CTRL on WIN32 and X11, or FL_META on MacOS X
+# define FL_CONTROL FL_META ///< An alias for FL_META on WIN32 and X11, or FL_CTRL on MacOS X
+#endif
+
#endif /* PLATFORM_TYPES_H */
/*