Skip to content

Commit

Permalink
common: Add guard around _GNU_SOURCE defintion
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed May 9, 2024
1 parent 5f66b53 commit c31fb55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/osdp_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
*
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* See feature_test_macros(7) */
#endif

#include <stdarg.h>
#include <stdlib.h>
#ifndef CONFIG_DISABLE_PRETTY_LOGGING
Expand Down

0 comments on commit c31fb55

Please sign in to comment.