From 343608dd9a0d8465210aa0c188d4a63f070d2a5c Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Wed, 2 Dec 2009 14:50:55 +0000 Subject: [PATCH] 2009-12-02 15:50 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/gtos2/Makefile * added workaround for wrong code generated by OpenWatcom 1.8 when -s switch is used for functions calling APIENTRY16 functions. Such code executed from non main thread causes GPF. --- harbour/ChangeLog | 6 ++++++ harbour/src/rtl/gtos2/Makefile | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index d3ed66ed01..625121e79a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,12 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-12-02 15:50 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/gtos2/Makefile + * added workaround for wrong code generated by OpenWatcom 1.8 + when -s switch is used for functions calling APIENTRY16 functions. + Such code executed from non main thread causes GPF. + 2009-12-02 11:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * INSTALL + Added HB_DIR_*, HB_INC_* settings to ones which users diff --git a/harbour/src/rtl/gtos2/Makefile b/harbour/src/rtl/gtos2/Makefile index dc21eb0888..6b0d702c3c 100644 --- a/harbour/src/rtl/gtos2/Makefile +++ b/harbour/src/rtl/gtos2/Makefile @@ -12,6 +12,12 @@ C_SOURCES := \ gtos2.c \ ifeq ($(HB_PLATFORM),os2) + ifeq ($(HB_COMPILER),watcom) + # This is workaround for wrong code generated by OpenWatcom 1.8 + # when -s switch is used for functions calling APIENTRY16 functions. + # Such code executed from non main thread causes GPF. + HB_CFLAGS += -sg + endif include $(TOP)$(ROOT)config/lib.mk else HB_SKIP_REASON := platform not supported