Changeset 17 for trunk/include/misc.h


Ignore:
Timestamp:
Jun 1, 1999, 12:08:16 AM (26 years ago)
Author:
phaller
Message:

Code cleanup #1 for build, mainly addresses linkage problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/misc.h

    r14 r17  
    1 /* $Id: misc.h,v 1.4 1999-05-31 17:12:38 phaller Exp $ */
     1/* $Id: misc.h,v 1.5 1999-05-31 22:08:08 phaller Exp $ */
     2
     3/*
     4 * Miscellaneous definitions
     5 * Debug prototypes and macros
     6 */
     7
    28
    39#ifndef __MISC_H__
     
    713      extern "C" {
    814#endif
    9 
    10 /*
    11  * Compiler Environment Definition
    12  */
    13 
    14 /* ---------- WATCOM C ---------- */
    15 #ifdef __WATCOMC__
    16   #define CDECL     _cdecl
    17   #define EXPORT    _export
    18   #define WIN32API  __stdcall
    19   #define SYSTEM    __stdcall
    20 #else
    21 
    22 /* ---------- GCC/EMX ---------- */
    23 #ifdef __GNUC__
    24   #define CDECL     _cdecl
    25   #define EXPORT    _export
    26   #define WIN32API  __stdcall
    27   #define SYSTEM    __stdcall
    28 #else
    29 
    30 /* ---------- VAC ---------- */
    31 #ifdef __IBMCPP__
    32   #define CDECL     _Cdecl
    33   #define EXPORT    _Export
    34   #define WIN32API  _System _Export
    35   #define SYSTEM    _System
    36 #else
    37 
    38 /* ---------- ??? ---------- */
    39 #error No known compiler.
    40 #endif
    41 #endif
    42 #endif
    43 
    44 
    45 /* map WINE to ODIN */
    46 #define WINAPI WIN32API
    47 #include <builtin.h>
    4815
    4916
     
    6734#endif
    6835
     36
     37#ifndef ULONG
     38#  define ULONG unsigned long
     39#endif
     40
     41#ifndef HMODULE
     42#  define HMODULE ULONG
     43#endif
     44
     45#ifndef SYSTEM
     46#  define SYSTEM _System
     47#endif
     48
     49
    6950int  SYSTEM WriteLog(char *tekst, ...);
    7051int  SYSTEM WriteLogError(char *tekst, ...);
     
    8465#include "unicode.h"
    8566
     67
    8668#endif
Note: See TracChangeset for help on using the changeset viewer.