mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 15:32:12 +08:00
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
This commit is contained in:
+5
-18
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user