Changeset 21804 for branches/gcc-kmk
- Timestamp:
- Nov 14, 2011, 8:13:20 PM (14 years ago)
- Location:
- branches/gcc-kmk
- Files:
-
- 9 edited
-
Config.kmk (modified) (4 diffs)
-
LocalConfig.kmk.tpl (modified) (1 diff)
-
include/odin.h (modified) (1 diff)
-
include/os2wrap.h (modified) (3 diffs)
-
src/kernel32/conbuffer.cpp (modified) (1 diff)
-
src/kernel32/conbuffervio.cpp (modified) (1 diff)
-
src/kernel32/console.cpp (modified) (2 diffs)
-
tools/common/kError.cpp (modified) (1 diff)
-
tools/common/kFile.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/Config.kmk
r21803 r21804 143 143 # Add support for MASM to the GCC compiler 144 144 # 145 TOOL_GXX3OMF_MASM = $( firstword $(PATH_TOOL_ALP) alp.exe)145 TOOL_GXX3OMF_MASM = $(PATH_TOOL_ALP) 146 146 TOOL_GXX3OMF_MASMFLAGS = -Mb 147 147 TOOL_GXX3OMF_COMPILE_MASM_OUTPUT = $(outbase).lst … … 168 168 TEMPLATE_OdinCxx_TOOL = GXX3OMF 169 169 TEMPLATE_OdinCxx_INCS = $(PATH_ROOT)/include/win $(PATH_ROOT)/include $(PATH_ROOT)/include/incl_gcc 170 TEMPLATE_OdinCxx_DEFS = __WIN32OS2__ __i386__ 170 TEMPLATE_OdinCxx_DEFS = USE_OS2_TOOLKIT_HEADERS OS2EMX_PLAIN_CHAR \ 171 __WIN32OS2__ __i386__ 171 172 172 173 TEMPLATE_OdinDLL = Odin DLL 173 174 TEMPLATE_OdinDLL_EXTENDS = OdinCxx 175 TEMPLATE_OdinDLL_EXTENDS_BY = appending 174 176 TEMPLATE_OdinDLL_DEFS = $(TEMPLATE_OdinCxx_DEFS) __WINE__ TCPV40HDRS COMCTL32UNDOC 175 177 TEMPLATE_OdinDLL_LIBS = $(PATH_STAGE_LIB)/odincrt.lib \ … … 178 180 TEMPLATE_OdinCRT = OdinCRT DLL 179 181 TEMPLATE_OdinCRT_EXTENDS = OdinCxx 182 TEMPLATE_OdinCRT_EXTENDS_BY = appending 180 183 TEMPLATE_OdinCRT_DEFS = __WINE__ 181 184 TEMPLATE_OdinCRT_LIBS = $(PATH_STAGE_LIB)/initdll.lib … … 201 204 endif 202 205 endif 206 207 #------------------------------------------------------------------------------ 208 # Post-processing 209 #------------------------------------------------------------------------------ 210 211 ifeq ($(PATH_TOOL_ALP),) 212 ifneq ($(PATH_SDK_OS2TK4),) 213 PATH_TOOL_ALP := $(PATH_SDK_OS2TK4)/bin/alp.exe 214 else 215 PATH_TOOL_ALP := alp.exe 216 endif 217 endif 218 219 ifneq ($(PATH_SDK_OS2TK4),) 220 # 221 # We can't add Toolkit includes in _INCS (it will casuse then to be searched 222 # before GCC headers and lead to conflicts), so use the environment variable. 223 # 224 C_INCLUDE_PATH := $(if $(C_INCLUDE_PATH),$(C_INCLUDE_PATH);)$(PATH_SDK_OS2TK4)/h 225 CPLUS_INCLUDE_PATH := $(if $(CPLUS_INCLUDE_PATH),$(CPLUS_INCLUDE_PATH);)$(PATH_SDK_OS2TK4)/h 226 endif -
branches/gcc-kmk/LocalConfig.kmk.tpl
r21750 r21804 22 22 23 23 # 24 # Path to the IBM The IBM Assembly Language Processor (may be found in the 25 # OS/2 toolkit). Defaults to 'alp.exe'. 24 # Path to the OS/2 Toolkit versoin 4.x. If not set, it is assumed that the 25 # toolkit is accessible through the environment. 26 # 27 # PATH_SDK_OS2TK4 := D:/Dev/OS2TK45 28 29 # 30 # Path to the IBM Assembly Language Processor (may be found in the 31 # OS/2 toolkit). Defaults to '$(PATH_SDK_OS2TK4)/bin/alp.exe' if 32 # PATH_SDK_OS2TK4 is set, or to 'alp.exe' otherwise. 26 33 # 27 34 # PATH_TOOL_ALP := alp.exe 28 -
branches/gcc-kmk/include/odin.h
r21787 r21804 93 93 #ifdef __INNOTEK_LIBC__ 94 94 #define SYSTEM _System 95 #define _LNK_CONV _Optlink 95 96 #else 96 97 #define SYSTEM CDECL -
branches/gcc-kmk/include/os2wrap.h
r21723 r21804 5 5 #ifdef __EMX__ 6 6 7 #define OS2EMX_PLAIN_CHAR8 9 7 #ifndef USE_OS2_TOOLKIT_HEADERS 10 8 … … 12 10 #define OS2_INCLUDED 13 11 #define OS2DEF_INCLUDED 12 #define WIN_INCLUDED 14 13 #define __OS2_H__ 15 14 … … 17 16 typedef unsigned short APIRET16; 18 17 #define APIENTRY16 _Far16 _Pascal 19 #define _LNK_CONV _Optlink20 18 21 19 #define INCL_LONGLONG_STRUCTS -
branches/gcc-kmk/src/kernel32/conbuffer.cpp
r21302 r21804 53 53 * Includes * 54 54 *****************************************************************************/ 55 56 // Vio/Kbd/Mou declarations conflict in GCC and in real OS2TK headers; 57 // force GCC declarations since we link against GCC libs 58 #if defined (__EMX__) && defined (USE_OS2_TOOLKIT_HEADERS) 59 #undef USE_OS2_TOOLKIT_HEADERS 60 #endif 55 61 56 62 #define INCL_WIN -
branches/gcc-kmk/src/kernel32/conbuffervio.cpp
r10010 r21804 53 53 * Includes * 54 54 *****************************************************************************/ 55 56 // Vio/Kbd/Mou declarations conflict in GCC and in real OS2TK headers; 57 // force GCC declarations since we link against GCC libs 58 #if defined (__EMX__) && defined (USE_OS2_TOOLKIT_HEADERS) 59 #undef USE_OS2_TOOLKIT_HEADERS 60 #endif 55 61 56 62 #define INCL_WIN -
branches/gcc-kmk/src/kernel32/console.cpp
r21755 r21804 53 53 * Header Files * 54 54 *******************************************************************************/ 55 #include <process.h> 56 #include <stdlib.h> 57 #include <string.h> 55 56 // Vio/Kbd/Mou declarations conflict in GCC and in real OS2TK headers; 57 // force GCC declarations since we link against GCC libs 58 #if defined (__EMX__) && defined (USE_OS2_TOOLKIT_HEADERS) 59 #undef USE_OS2_TOOLKIT_HEADERS 60 #endif 58 61 59 62 #define INCL_WIN … … 69 72 #define INCL_AVIO 70 73 #include <os2wrap.h> //Odin32 OS/2 api wrappers 74 75 #include <process.h> 76 #include <stdlib.h> 77 #include <string.h> 71 78 72 79 #include <win32type.h> -
branches/gcc-kmk/tools/common/kError.cpp
r21759 r21804 16 16 * Header Files * 17 17 *******************************************************************************/ 18 #if def __EMX__18 #if defined (__EMX__) && !defined (USE_OS2_TOOLKIT_HEADERS) 19 19 #define __OS2DEF__ 20 #define OS2EMX_PLAIN_CHAR21 20 #endif 22 21 #include <os2.h> -
branches/gcc-kmk/tools/common/kFile.cpp
r21759 r21804 19 19 * Header Files * 20 20 *******************************************************************************/ 21 #if def __EMX__21 #if defined (__EMX__) && !defined (USE_OS2_TOOLKIT_HEADERS) 22 22 #define __OS2DEF__ 23 #define OS2EMX_PLAIN_CHAR24 23 #endif 25 24 #include <os2.h>
Note:
See TracChangeset
for help on using the changeset viewer.
