Fixed Watcom compiler setup without verification using a patch by mnieuw

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2007-02-20 17:02:41 +00:00
parent 658162c509
commit 8ea59b412e
9 changed files with 40 additions and 22 deletions

View File

@ -21,10 +21,10 @@ that will help you to get the most out of FLTK.</P>
int main() { int main() {
Fl::lock(); Fl::lock();
/* run thread */ /* run thread */
while (Fl::wait() > 0) { while (Fl::wait() &lt; 0) {
if (Fl::thread_message()) { if (Fl::thread_message()) {
/* process your data */ /* process your data */
} }
} }
} }
</pre> </pre>

View File

@ -59,11 +59,13 @@
# include <io.h> # include <io.h>
# include <commdlg.h> # include <commdlg.h>
# include <FL/x.H> # include <FL/x.H>
# if !defined(__WATCOMC__)
// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs // Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
// on Windows, which is supposed to be POSIX compliant... // on Windows, which is supposed to be POSIX compliant...
# define access _access # define access _access
# define chdir _chdir # define chdir _chdir
# define getcwd _getcwd # define getcwd _getcwd
# endif // !__WATCOMC__
#else #else
# include <unistd.h> # include <unistd.h>
#endif #endif

View File

@ -24,21 +24,24 @@
# #
OBJECTS = & OBJECTS = &
CodeEditor.obj &
Fl_Function_Type.obj & Fl_Function_Type.obj &
Fl_Menu_Type.obj &
Fl_Group_Type.obj & Fl_Group_Type.obj &
Fl_Widget_Type.obj & Fl_Menu_Type.obj &
Fl_Type.obj & Fl_Type.obj &
Fl_Widget_Type.obj &
Fl_Window_Type.obj & Fl_Window_Type.obj &
Fluid_Image.obj & Fluid_Image.obj &
about_panel.obj &
align_widget.obj &
alignment_panel.obj &
code.obj & code.obj &
factory.obj & factory.obj &
file.obj & file.obj &
align_widget.obj & function_panel.obj &
about_panel.obj & template_panel.obj &
widget_panel.obj & undo.obj &
alignment_panel.obj & widget_panel.obj
function_panel.obj
# fluid.obj should not be in the list, because the watcom.mif file # fluid.obj should not be in the list, because the watcom.mif file
# assumes an object file with the same name as the target executable # assumes an object file with the same name as the target executable

View File

@ -34,9 +34,11 @@
# include <io.h> # include <io.h>
# include <windows.h> # include <windows.h>
# define getpid (int)GetCurrentProcessId # define getpid (int)GetCurrentProcessId
# if !defined(__WATCOMC__)
// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs // Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
// on Windows, which is supposed to be POSIX compliant... // on Windows, which is supposed to be POSIX compliant...
# define unlink _unlink # define unlink _unlink
# endif // !__WATCOMC__
#else #else
# include <unistd.h> # include <unistd.h>
#endif // WIN32 && !__CYGWIN__ #endif // WIN32 && !__CYGWIN__

View File

@ -40,7 +40,7 @@
extern "C" int putenv(const char*); extern "C" int putenv(const char*);
#endif // __APPLE__ && __MWERKS__ #endif // __APPLE__ && __MWERKS__
#if defined(WIN32) && !defined(__CYGWIN__) #if defined(WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__)
// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs // Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
// on Windows, which is supposed to be POSIX compliant... // on Windows, which is supposed to be POSIX compliant...
# define putenv _putenv # define putenv _putenv

View File

@ -54,8 +54,10 @@
// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs // Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
// on Windows, which is supposed to be POSIX compliant... Some of these functions // on Windows, which is supposed to be POSIX compliant... Some of these functions
// are also defined in ISO C99... // are also defined in ISO C99...
# define strdup _strdup # if !defined(__WATCOMC__)
# define unlink _unlink # define strdup _strdup
# define unlink _unlink
# endif // !__WATCOMC__
# elif defined(__EMX__) # elif defined(__EMX__)
# define strcasecmp(s,t) stricmp((s), (t)) # define strcasecmp(s,t) stricmp((s), (t))
# define strncasecmp(s,t,n) strnicmp((s), (t), (n)) # define strncasecmp(s,t,n) strnicmp((s), (t), (n))

View File

@ -131,8 +131,10 @@ CPPFILES = &
fl_engraved_label.obj & fl_engraved_label.obj &
fl_file_dir.obj & fl_file_dir.obj &
fl_font.obj & fl_font.obj &
fl_gtk.obj &
fl_labeltype.obj & fl_labeltype.obj &
fl_line_style.obj & fl_line_style.obj &
fl_open_uri.obj &
fl_oval_box.obj & fl_oval_box.obj &
fl_overlay.obj & fl_overlay.obj &
fl_overlay_visual.obj & fl_overlay_visual.obj &
@ -148,7 +150,8 @@ CPPFILES = &
fl_shortcut.obj & fl_shortcut.obj &
fl_show_colormap.obj & fl_show_colormap.obj &
fl_symbols.obj & fl_symbols.obj &
fl_vertex.obj fl_vertex.obj &
screen_xywh.obj
FLCPPFILES = & FLCPPFILES = &
forms_compatability.obj & forms_compatability.obj &
@ -162,6 +165,10 @@ GLCPPFILES = &
Fl_Gl_Choice.obj & Fl_Gl_Choice.obj &
Fl_Gl_Overlay.obj & Fl_Gl_Overlay.obj &
Fl_Gl_Window.obj & Fl_Gl_Window.obj &
freeglut_geometry.obj &
freeglut_stroke_mono_roman.obj &
freeglut_stroke_roman.obj &
freeglut_teapot.obj &
gl_draw.obj & gl_draw.obj &
gl_start.obj & gl_start.obj &
glut_compatability.obj & glut_compatability.obj &

View File

@ -30,10 +30,12 @@
#include <stdlib.h> #include <stdlib.h>
#if defined(WIN32) && !defined(__CYGWIN__) #if defined(WIN32) && !defined(__CYGWIN__)
# include <direct.h> # include <direct.h>
# if !defined(__WATCOMC__)
// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs // Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
// on Windows, which is supposed to be POSIX compliant... // on Windows, which is supposed to be POSIX compliant...
# define chdir _chdir # define chdir _chdir
# define putenv _putenv # define putenv _putenv
# endif // !__WATCOMC__
#else #else
# include <unistd.h> # include <unistd.h>
#endif #endif

View File

@ -198,13 +198,13 @@ EXEEXT=.exe
!ifeqi D d !ifeqi D d
WCADEBUG=-d1 # debug opts for wasm WCADEBUG=-d1 # debug opts for wasm
WCCDEBUG=-d2 -s -ors # debug opts for wcc. NOTE: -we is to make errors of all warnings WCCDEBUG=-d2 -s -ors -wcd=666 -wcd=836 # debug opts for wcc. NOTE: -we is to make errors of all warnings
WCLDEBUG=d all # debug opts for wlink WCLDEBUG=d all # debug opts for wlink
# WCCTIMING=-et # if added to CC command line will generate timing file after execution # WCCTIMING=-et # if added to CC command line will generate timing file after execution
!else !else
# #
# WCADEBUG= # debug opts for wasm # WCADEBUG= # debug opts for wasm
WCCDEBUG= -ors -s # release opts for wcc WCCDEBUG= -ors -s -wcd=666 -wcd=836 # release opts for wcc
# WCLDEBUG= # release opts for wlink # WCLDEBUG= # release opts for wlink
!endif !endif