You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing game template with C99 for Visual Studio 2019, I added physac.h with being standalone via defining PHYSAC_STANDALONE, But when building solution i get type conflict errors
The problem with both functions GetCurrentTime and GetTimeCount, Anyway...
When i went to their definition, I found that both names used by Windows API functions via WinBase.h, As you see in the image below
So yes, Windows API functions use these names, To solve this i renamed GetCurrentTime to CurrentTime and renamed GetTimeCount to TimeCount everywhere in physac.h
Do you have idea to solve this by checking for Windows platform or Windows API, Tell me...
The text was updated successfully, but these errors were encountered:
OK, This issue/problem is weirdest issue i had...
Doing game template with C99 for Visual Studio 2019, I added
physac.h
with being standalone via definingPHYSAC_STANDALONE
, But when building solution i get type conflict errorsThe problem with both functions
GetCurrentTime
andGetTimeCount
, Anyway...When i went to their definition, I found that both names used by Windows API functions via
WinBase.h
, As you see in the image belowSo yes, Windows API functions use these names, To solve this i renamed
GetCurrentTime
toCurrentTime
and renamedGetTimeCount
toTimeCount
everywhere inphysac.h
Do you have idea to solve this by checking for Windows platform or Windows API, Tell me...
The text was updated successfully, but these errors were encountered: