Skip to content

Commit

Permalink
utils: Fix warning about __weak redefined
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Feb 20, 2024
1 parent 43f63d6 commit a096d8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ extern "C" {
#define PACK( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop))
#endif

#ifdef __weak
#undef __weak
#endif

#if (defined(_WIN32) || defined(_WIN64))
#define __format_printf(x, y)
#define __noreturn
Expand Down

0 comments on commit a096d8d

Please sign in to comment.