Skip to content

Commit

Permalink
added compiler support comment about #pragma push_macro/pop_macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jun 3, 2023
1 parent 5fcd705 commit 0c862d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hidapi/SDL_hidapi_libusb.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
*/

/* Define standard library functions in terms of SDL */

/* #pragma push_macro/pop_macro works correctly only as of gcc >= 4.4.3
clang-3.0 _seems_ to be OK. */
#pragma push_macro("malloc")
#pragma push_macro("realloc")
#pragma push_macro("free")
Expand Down
3 changes: 3 additions & 0 deletions src/hidapi/SDL_hidapi_windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
*/

/* Define standard library functions in terms of SDL */

/* #pragma push_macro/pop_macro works correctly only as of gcc >= 4.4.3
clang-3.0 _seems_ to be OK. */
#pragma push_macro("calloc")
#pragma push_macro("free")
#pragma push_macro("malloc")
Expand Down

0 comments on commit 0c862d9

Please sign in to comment.