Skip to content

Commit

Permalink
flamingo: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Nov 5, 2024
1 parent 62be83a commit 74076e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

#pragma once

// this file must be included before anything else
// feature test macros go here, because they're annoying and no one likes the
// defaults see: feature_test_macros(7)
// This file must be included before anything else.
// Feature test macros go here, because they're annoying and no one likes the defaults.
// See: feature_test_macros(7).

#define __STDC_WANT_LIB_EXT2__ \
1 // ISO/IEC TR 24731-2:2010 standard library extensions
1 // ISO/IEC TR 24731-2:2010 standard library extensions.

#if __linux__
# define _GNU_SOURCE
Expand Down
4 changes: 4 additions & 0 deletions src/flamingo/flamingo.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// This Source Form is subject to the terms of the AQUA Software License,
// v. 1.0. Copyright (c) 2024 Aymeric Wibo

#if __linux__
# define _GNU_SOURCE
#endif

#include "parser.c"

// XXX Tree-sitter defines this, but 'features.h' on Linux defines this as well when '_DEFAULT_SOURCE' is set.
Expand Down

0 comments on commit 74076e7

Please sign in to comment.