Changeset 4818 for trunk/src/odincrt
- Timestamp:
- Dec 17, 2000, 12:33:37 AM (25 years ago)
- Location:
- trunk/src/odincrt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/odincrt/initterm.cpp
r2649 r4818 1 /* $Id: initterm.cpp,v 1. 3 2000-02-05 02:05:37 sandervlExp $ */1 /* $Id: initterm.cpp,v 1.4 2000-12-16 23:33:37 bird Exp $ */ 2 2 3 3 /* … … 35 35 #include <exitlist.h> 36 36 37 #ifdef __IBMCPP__ 37 38 extern "C" { 38 39 /*-------------------------------------------------------------------*/ … … 71 72 ulFlag) 72 73 { 73 size_t i;74 74 APIRET rc; 75 75 … … 134 134 return ; 135 135 } 136 137 #elif defined(__WATCOM_CPLUSPLUS__) 138 139 /* 140 * Watcom dll init and term routines. 141 */ 142 143 int __dll_initialize(unsigned long hModule, unsigned long ulFlag) 144 { 145 APIRET rc; 146 #if 1 /* 147 * Experimental console hack. Sets apptype to PM anyhow. 148 * First Dll to be initiated should now allways be OdinCrt! 149 * So include odincrt first! 150 */ 151 PPIB pPIB; 152 PTIB pTIB; 153 rc = DosGetInfoBlocks(&pTIB, &pPIB); 154 if (rc != NO_ERROR) 155 return 0UL; 156 pPIB->pib_ultype = 3; 157 #endif 158 return 1; 159 } 160 161 int __dll_terminate(unsigned long hModule, unsigned long ulFlag) 162 { 163 return 1; 164 } 165 166 #else 167 #error message("compiler is not supported"); 168 #endif 169 -
trunk/src/odincrt/makefile
r4717 r4818 1 # $Id: makefile,v 1.2 0 2000-12-02 23:40:36bird Exp $1 # $Id: makefile,v 1.21 2000-12-16 23:33:37 bird Exp $ 2 2 3 3 # … … 39 39 DEFFILE = odin36$(DBG).def 40 40 !endif 41 !ifdef WAT 42 DEFFILE = odinwat$(DBG).def 43 !endif 41 44 !ifndef DEFFILE 42 45 !error "not supported on this compiler yet." … … 50 53 $(OBJDIR)\odincrt.obj \ 51 54 $(OBJDIR)\initterm.obj \ 55 !ifndef WAT 52 56 $(OBJDIR)\malloc.obj \ 53 57 $(OBJDIR)\string.obj \ 54 58 $(OBJDIR)\file.obj 59 !else 60 $(%WATCOM)\lib386\os2\$(RTLLIB_O) 61 !endif 55 62 56 63 … … 58 65 # Libraries. One space before the '\'. 59 66 # 60 LIBS = 67 LIBS = \ 68 !ifdef WAT 69 $(RTLLIB_O) 70 !endif 61 71 62 72
Note:
See TracChangeset
for help on using the changeset viewer.