Changeset 21702 for branches


Ignore:
Timestamp:
Oct 18, 2011, 6:56:51 PM (14 years ago)
Author:
dmik
Message:

Force extern "C" for API declarations.

Seems that IBM VAC implied that for stdcall ones. GCC doesn't do that.

Location:
branches/gcc-kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/include/win32api.h

    r21602 r21702  
    1111#include <win32type.h>
    1212#include <winconst.h>
     13
     14#ifdef __cplusplus
     15extern "C" {
     16#endif
    1317
    1418void   WIN32API SetLastError(DWORD dwError);
     
    263267BOOL      WINAPI IsDBCSLeadByte(BYTE);
    264268
     269#ifdef __cplusplus
     270} // extern "C"
    265271#endif
     272
     273#endif
  • branches/gcc-kmk/src/kernel32/profile.h

    r10528 r21702  
    1414#define ODINININAME "ODIN.INI"
    1515
    16 void WINAPI WriteOutProfiles(void);
     16#ifdef __cplusplus
     17extern "C" {
     18#endif
     19
    1720int WINAPI PROFILE_Initialize (void);
    18 int WINAPI PROFILE_LoadOdinIni(void);
    1921
    2022#ifdef DEBUG
     
    4547#endif
    4648
    47 #include <win\options.h> //for odin profile apis
     49#ifdef __cplusplus
     50} // extern "C"
     51#endif
     52
     53#include <win/options.h> //for odin profile apis
    4854
    4955#endif
Note: See TracChangeset for help on using the changeset viewer.