Make HAL headers C-compatible (#1177)

Also fix the return type of HAL_IsNewControlData() and HAL_MatchType's type.

Since UsageReporting is intended to be namespaced, it is hidden when this is being used in C.

Fixes: #476
Closes: #535
Ref: #1122
This commit is contained in:
David Vo
2018-07-08 15:18:03 +10:00
committed by Peter Johnson
parent 3818a8b3b6
commit ad3e2d7d3b
13 changed files with 57 additions and 18 deletions

View File

@@ -204,7 +204,7 @@ static void InitLastCountKey(void) {
}
#endif
bool HAL_IsNewControlData(void) {
HAL_Bool HAL_IsNewControlData(void) {
#ifdef __APPLE__
pthread_once(&lastCountKeyOnce, InitLastCountKey);
int* lastCountPtr = static_cast<int*>(pthread_getspecific(lastCountKey));