summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-04-12 17:53:18 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-04-12 17:53:18 +0000
commit7e04657ce74bcd643ad8a4e697ab23e1fbc585c2 (patch)
treec311e1d4e5539c7dddee8699015ccbcbf3523332
parentf3e7251871dfa6f4b0e47cfc2a66dbdac8f3d91f (diff)
Remove obsolete EMX (DOS, OS/2 extender) support.
This commit changes all files except src/Fl_File_Chooser2.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/math.h7
-rw-r--r--fluid/fluid.cxx23
-rw-r--r--src/flstring.h3
-rw-r--r--test/colbrowser.cxx14
-rw-r--r--test/fractals.cxx2
-rw-r--r--test/fracviewer.cxx4
6 files changed, 14 insertions, 39 deletions
diff --git a/FL/math.h b/FL/math.h
index b574000cb..a167639da 100644
--- a/FL/math.h
+++ b/FL/math.h
@@ -3,7 +3,7 @@
//
// Math header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -29,11 +29,6 @@
# include <math.h>
# undef fl_math_h_cyclic_include
-# ifdef __EMX__
-# include <float.h>
-# endif
-
-
# ifndef M_PI
# define M_PI 3.14159265358979323846
# define M_PI_2 1.57079632679489661923
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index b3c942bc4..437475169 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -3,7 +3,7 @@
//
// FLUID main entry for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -66,9 +66,6 @@
#else
# include <unistd.h>
#endif
-#ifdef __EMX__
-# include <X11/Xlibint.h>
-#endif
#include "about_panel.h"
#include "undo.h"
@@ -202,10 +199,10 @@ void save_cb(Fl_Widget *, void *v) {
const char *basename;
if ((basename = strrchr(c, '/')) != NULL)
basename ++;
-#if defined(WIN32) || defined(__EMX__)
+#if defined(WIN32)
if ((basename = strrchr(c, '\\')) != NULL)
basename ++;
-#endif // WIN32 || __EMX__
+#endif // WIN32
else
basename = c;
@@ -851,17 +848,7 @@ void show_help(const char *name) {
if (!help_dialog) help_dialog = new Fl_Help_Dialog();
if ((docdir = getenv("FLTK_DOCDIR")) == NULL) {
-#ifdef __EMX__
- // Doesn't make sense to have a hardcoded fallback
- static char fltk_docdir[FL_PATH_MAX];
-
- strlcpy(fltk_docdir, __XOS2RedirRoot("/XFree86/lib/X11/fltk/doc"),
- sizeof(fltk_docdir));
-
- docdir = fltk_docdir;
-#else
docdir = FLTK_DOCDIR;
-#endif // __EMX__
}
snprintf(helpname, sizeof(helpname), "%s/%s", docdir, name);
@@ -1639,9 +1626,9 @@ void set_modflag(int mf) {
if (main_window) {
if (!filename) basename = "Untitled.fl";
else if ((basename = strrchr(filename, '/')) != NULL) basename ++;
-#if defined(WIN32) || defined(__EMX__)
+#if defined(WIN32)
else if ((basename = strrchr(filename, '\\')) != NULL) basename ++;
-#endif // WIN32 || __EMX__
+#endif // WIN32
else basename = filename;
if (modflag) {
diff --git a/src/flstring.h b/src/flstring.h
index daeacf1cd..57e913d13 100644
--- a/src/flstring.h
+++ b/src/flstring.h
@@ -50,9 +50,6 @@
# define strdup _strdup
# /* define unlink _unlink */
# endif /* !__WATCOMC__ */
-# elif defined(__EMX__)
-# define strcasecmp(s,t) stricmp((s), (t))
-# define strncasecmp(s,t,n) strnicmp((s), (t), (n))
# endif /* WIN32 */
# ifdef __cplusplus
diff --git a/test/colbrowser.cxx b/test/colbrowser.cxx
index b167d6539..0865870d8 100644
--- a/test/colbrowser.cxx
+++ b/test/colbrowser.cxx
@@ -147,15 +147,11 @@ static int load_browser(char *fname)
RGBdb *db = rgbdb, *dbs = db + MAX_RGB;
int r, g, b, lr = -1 , lg = -1, lb = -1;
char name[256], buf[256];
-#ifdef __EMX__
- if (!(fp = fl_fopen(__XOS2RedirRoot(fname), "r")))
-#else
- if (!(fp = fl_fopen(fname, "r")))
-#endif
- {
- fl_alert("%s\n%s\n%s","Load", fname, "Can't open");
- return 0;
- }
+
+ if (!(fp = fl_fopen(fname, "r"))) {
+ fl_alert("%s\n%s\n%s","Load", fname, "Can't open");
+ return 0;
+ }
/* read the items */
diff --git a/test/fractals.cxx b/test/fractals.cxx
index 5d3f1def3..1b20e25f9 100644
--- a/test/fractals.cxx
+++ b/test/fractals.cxx
@@ -67,7 +67,7 @@ int main(int, char**) {
#include "fracviewer.h"
-#if defined(WIN32) || defined(__EMX__)
+#if defined(WIN32)
# define drand48() (((float) rand())/((float) RAND_MAX))
# define srand48(x) (srand((x)))
#elif defined __APPLE__
diff --git a/test/fracviewer.cxx b/test/fracviewer.cxx
index a6450eb87..c61ef3d7f 100644
--- a/test/fracviewer.cxx
+++ b/test/fracviewer.cxx
@@ -23,9 +23,9 @@
# include <math.h>
# include <sys/types.h>
# include <time.h>
-# if !defined(WIN32) && !defined(__EMX__)
+# if !defined(WIN32)
# include <sys/time.h>
-# endif // !WIN32 && !__EMX__
+# endif // !WIN32
# include "fracviewer.h"