added DECLARE_STDCALL_P (grischka)

This commit is contained in:
bellard 2005-04-17 13:13:54 +00:00
parent 58f6207abe
commit debf0234cc

View file

@ -1,51 +1,52 @@
/* /*
* _mingw.h * _mingw.h
* *
* This file is for TCC-PE and not part of the Mingw32 package. * This file is for TCC-PE and not part of the Mingw32 package.
* *
* THIS SOFTWARE IS NOT COPYRIGHTED * THIS SOFTWARE IS NOT COPYRIGHTED
* *
* This source code is offered for use in the public domain. You may * This source code is offered for use in the public domain. You may
* use, modify or distribute it freely. * use, modify or distribute it freely.
* *
* This code is distributed in the hope that it will be useful but * This code is distributed in the hope that it will be useful but
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
* DISCLAIMED. This includes but is not limited to warranties of * DISCLAIMED. This includes but is not limited to warranties of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* *
*/ */
#ifndef __MINGW_H #ifndef __MINGW_H
#define __MINGW_H #define __MINGW_H
#define __int64 long long #define __int64 long long
#define __int32 long #define __int32 long
#define __int16 short #define __int16 short
#define __int8 char #define __int8 char
#define __cdecl __attribute__((__cdecl__)) #define __cdecl __attribute__((__cdecl__))
#define __stdcall __attribute__((__stdcall__)) #define __stdcall __attribute__((__stdcall__))
#define __declspec(x) __attribute__((x)) #define __declspec(x) __attribute__((x))
#define __MINGW32_VERSION 2.0 #define __MINGW32_VERSION 2.0
#define __MINGW32_MAJOR_VERSION 2 #define __MINGW32_MAJOR_VERSION 2
#define __MINGW32_MINOR_VERSION 0 #define __MINGW32_MINOR_VERSION 0
#define __MSVCRT__ #define __MSVCRT__
#define __MINGW_IMPORT extern #define __MINGW_IMPORT extern
#define _CRTIMP #define _CRTIMP
#define __CRT_INLINE extern __inline__ #define __CRT_INLINE extern __inline__
#define _WIN32 #define _WIN32
#define WIN32 #define WIN32
#ifndef _WINT_T #ifndef _WINT_T
#define _WINT_T #define _WINT_T
typedef unsigned int wint_t; typedef unsigned int wint_t;
#endif #endif
/* for winapi */ /* for winapi */
#define NONAMELESSUNION #define NONAMELESSUNION
#define DECLSPEC_NORETURN #define DECLSPEC_NORETURN
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#define DECLARE_STDCALL_P(type) __stdcall type
#endif /* __MINGW_H */
#endif /* __MINGW_H */