mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-19 19:12:11 +00:00
Merge pull request #280 from MestreLion/patch-1
use a GCC equivalent for __stdcall where applicable
This commit is contained in:
commit
00724b40d7
@ -250,9 +250,18 @@ typedef struct ADLOD6PowerControlInfo
|
|||||||
int iExtMask;
|
int iExtMask;
|
||||||
} ADLOD6PowerControlInfo;
|
} ADLOD6PowerControlInfo;
|
||||||
|
|
||||||
|
/* __stdcall definition, platform-dependent:
|
||||||
|
* - Already defined on Windows compilers
|
||||||
|
* - GCC has a suitable equivalent on 32-bit platforms
|
||||||
|
* - Leave it blank for other platforms/compilers
|
||||||
|
*/
|
||||||
#if !(defined (_WIN32) || defined (_WIN64))
|
#if !(defined (_WIN32) || defined (_WIN64))
|
||||||
|
#if (defined(__GNUC__) && defined(__i386__))
|
||||||
|
#define __stdcall __attribute__((stdcall))
|
||||||
|
#else
|
||||||
#define __stdcall
|
#define __stdcall
|
||||||
#endif
|
#endif /* GCC 32-bit */
|
||||||
|
#endif /* Not windows */
|
||||||
|
|
||||||
typedef void* (__stdcall *ADL_MAIN_MALLOC_CALLBACK )( int );
|
typedef void* (__stdcall *ADL_MAIN_MALLOC_CALLBACK )( int );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user