Changeset 10975


Ignore:
Timestamp:
Jul 21, 1999, 9:25:06 AM (26 years ago)
Author:
sandervl
Message:

Getting rid of some linker errors

Location:
tags/trunk/src/ddraw
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/src/ddraw/OS2DDRAW.H

    r10835 r10975  
    44#include <ddraw.h>
    55#include <d3d.h>
     6#undef APIENTRY
     7#define APIENTRY _System
    68#include <dive.h>
    79
  • TabularUnified tags/trunk/src/ddraw/initterm.cpp

    r10834 r10975  
    3030#include <misc.h>       /*PLF Wed  98-03-18 23:18:29*/
    3131
     32extern "C" {
    3233/*-------------------------------------------------------------------*/
    3334/* _CRT_init is the C run-time environment initialization function.  */
    3435/* It will return 0 to indicate success and -1 to indicate failure.  */
    3536/*-------------------------------------------------------------------*/
    36 int _CRT_init(void);
     37int CDECL CRT_init(void);
    3738/*-------------------------------------------------------------------*/
    3839/* _CRT_term is the C run-time environment termination function.     */
     
    4041/* statically linked.                                                */
    4142/*-------------------------------------------------------------------*/
    42 void _CRT_term(void);
    43 void __ctordtorInit( void );
    44 void __ctordtorTerm( void );
    45 
     43void CDECL CRT_term(void);
     44void CDECL _ctordtorInit( void );
     45void CDECL _ctordtorTerm( void );
     46}
    4647/*-------------------------------------------------------------------*/
    4748/* A clean up routine registered with DosExitList must be used if    */
     
    8384         /*******************************************************************/
    8485
    85          if (_CRT_init() == -1)
     86         if (CRT_init() == -1)
    8687            return 0UL;
    87      __ctordtorInit();
     88     _ctordtorInit();
    8889
    8990//SvL: Temporarily disabled
     
    117118static void APIENTRY cleanup(ULONG ulReason)
    118119{
    119    __ctordtorTerm();
    120    _CRT_term();
     120   _ctordtorTerm();
     121   CRT_term();
    121122   DosExitList(EXLST_EXIT, cleanup);
    122123   return ;
  • TabularUnified tags/trunk/src/ddraw/makefile

    r10973 r10975  
    2121        os2surface.obj os2palette.obj os2palset.obj misc.obj rectangle.obj initterm.obj
    2222
    23 LIBS =  ..\..\lib\pmwinx.lib mmpm2.lib ..\..\lib\comctl32.lib
     23LIBS =  ..\..\lib\pmwinx.lib mmpm2.lib ..\..\lib\comctl32.lib $(PDWIN32_LIB)\advapi32.lib $(PDWIN32_LIB)\kernel32.lib $(PDWIN32_LIB)\gdi32.lib
    2424
    2525all: $(TARGET).dll $(TARGET).lib
Note: See TracChangeset for help on using the changeset viewer.