summaryrefslogtreecommitdiff
path: root/src/Fl_arg.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-04 23:09:32 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-04 23:09:32 +0000
commitb1520373aebb3f16e1aad19d253c1ec12439664c (patch)
treefc48095864b484ab563a34f65040d00a8a3a9c54 /src/Fl_arg.cxx
parenteb1abad3ca43963f7826f067e70bc3a20db352da (diff)
Created pseudo code for all FL_PORTED section so that FLTK compiles and links (Xcode, hello, other C flags: -D FL_PORTING -U __APPLE__ -U __APPLE_QUARTZ__)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_arg.cxx')
-rw-r--r--src/Fl_arg.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/Fl_arg.cxx b/src/Fl_arg.cxx
index 1fec33b69..a013f1706 100644
--- a/src/Fl_arg.cxx
+++ b/src/Fl_arg.cxx
@@ -34,7 +34,7 @@
#else
#endif
-#if defined(WIN32) || defined(__APPLE__)
+#if defined(WIN32) || defined(__APPLE__) || defined(FL_PORTING)
int XParseGeometry(const char*, int*, int*, unsigned int*, unsigned int*);
# define NoValue 0x0000
# define XValue 0x0001
@@ -301,7 +301,11 @@ void Fl_Window::show(int argc, char **argv) {
Fl::get_system_colors();
-#if !defined(WIN32) && !defined(__APPLE__)
+#if defined(WIN32)
+#elif defined(__APPLE__)
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: Parse additional default settings"
+#else // X11
// Get defaults for drag-n-drop and focus...
const char *key = 0, *val;
@@ -361,7 +365,11 @@ void Fl_Window::show(int argc, char **argv) {
// Show the window AFTER we have set the colors and scheme.
show();
-#if !defined(WIN32) && !defined(__APPLE__)
+#if defined(WIN32)
+#elif defined(__APPLE__)
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: Parse additional default settings"
+#else // X11
// set the command string, used by state-saving window managers:
int j;
int n=0; for (j=0; j<argc; j++) n += strlen(argv[j])+1;
@@ -544,6 +552,10 @@ int XParseGeometry(const char* string, int* x, int* y,
return (mask);
}
+#elif defined(FL_PORTING)
+
+int XParseGeometry(const char* string, int* x, int* y, unsigned int* width, unsigned int* height) { return 0; }
+
#endif // ifdef WIN32
//