victorfisac / Physac

2D physics header-only library for videogames developed in C using raylib library.
http://www.victorfisac.com/physac
MIT License
432 stars 28 forks source link

Typo in physac.h #44

Closed iN1PE closed 3 years ago

iN1PE commented 4 years ago

At around like 255, I believe there is a typo and instead of:

int __stdcall QueryPerformanceCounter(unsigned long long int* lpPerformanceCount);
int __stdcall QueryPerformanceFrequency(unsigned long long int* lpFrequency);

there should be:

#if defined(__cplusplus)
extern "C" {                                    // Prevents name mangling of functions
#endif
int __stdcall QueryPerformanceCounter(unsigned long long int* lpPerformanceCount);
int __stdcall QueryPerformanceFrequency(unsigned long long int* lpFrequency);
#if defined(__cplusplus)
}
#endif
victorfisac commented 3 years ago

Thank you for this fix. I have commited it in master branch.