Commit 5db73395 by John Bauman Committed by Nicolas Capens

Change Register function to use stdcall

Older versions used stdcall, so change the signature for backwards compatibility.
parent 66b8ab22
...@@ -57,7 +57,7 @@ void InitValidationApp(void) ...@@ -57,7 +57,7 @@ void InitValidationApp(void)
extern "C" extern "C"
{ {
void Register(char *licenseKey) void REGISTERAPI Register(char *licenseKey)
{ {
InitValidationApp(); InitValidationApp();
memset(validationKey, '\0', sizeof(validationKey)); memset(validationKey, '\0', sizeof(validationKey));
......
...@@ -29,7 +29,12 @@ void InitValidationApp(); ...@@ -29,7 +29,12 @@ void InitValidationApp();
extern "C" extern "C"
{ {
void Register(char *licenseKey); #ifdef _WIN32
#define REGISTERAPI __stdcall
#else
#define REGISTERAPI
#endif
void REGISTERAPI Register(char *licenseKey);
} }
#endif // Register_hpp #endif // Register_hpp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment