X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcectypes.h;h=46b25e483324bc6b5b9c536063377915693f539d;hb=761ccce0c3c48da744dfa01f62097ebf54d01f52;hp=b8ae24dda13e70102fe705b9534d7603a72af50c;hpb=dd4ace4fb38ecd5c24f94bd590572bbd9660d12c;p=deb_libcec.git diff --git a/include/cectypes.h b/include/cectypes.h index b8ae24d..46b25e4 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -37,9 +37,16 @@ #include #include +#if defined(_WIN32) || defined(_WIN64) +#define CDECL __cdecl +#else +#define CDECL +#endif + #if !defined(DECLSPEC) #if defined(_WIN32) || defined(_WIN64) #include +#define CDECL __cdecl #if defined DLL_EXPORT #define DECLSPEC __declspec(dllexport) #else @@ -866,9 +873,10 @@ typedef struct cec_logical_addresses #endif } cec_logical_addresses; -typedef int (__cdecl *CBCecLogMessageType)(const CEC::cec_log_message &); -typedef int (__cdecl* CBCecKeyPressType)(const cec_keypress &key); -typedef int (__cdecl* CBCecCommandType)(const cec_command &command); + +typedef int (CDECL* CBCecLogMessageType)(const CEC::cec_log_message &); +typedef int (CDECL* CBCecKeyPressType)(const cec_keypress &key); +typedef int (CDECL* CBCecCommandType)(const cec_command &command); typedef struct ICECCallbacks {