callconv.h (898B)
1 /* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. 2 Licensed under the Apache 2.0 and MIT Licenses. */ 3 4 #ifndef KRML_HEADER_CALLCONV_H 5 #define KRML_HEADER_CALLCONV_H 6 7 /******************************************************************************/ 8 /* Some macros to ease compatibility (TODO: move to miTLS) */ 9 /******************************************************************************/ 10 11 /* We want to generate __cdecl safely without worrying about it being undefined. 12 * When using MSVC, these are always defined. When using MinGW, these are 13 * defined too. They have no meaning for other platforms, so we define them to 14 * be empty macros in other situations. */ 15 #ifndef _MSC_VER 16 #ifndef __cdecl 17 #define __cdecl 18 #endif 19 #ifndef __stdcall 20 #define __stdcall 21 #endif 22 #ifndef __fastcall 23 #define __fastcall 24 #endif 25 #endif 26 27 #endif /* KRML_HEADER_CALLCONV_H */