Skip to content

Commit

Permalink
examples: fix issues that were pointed out on the CI
Browse files Browse the repository at this point in the history
In the cmake, we already define some of these, so no need
to define things twice. Check beforehand.

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz authored and commodo committed Apr 21, 2020
1 parent 7a8fbe2 commit a18d130
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions examples/iio-monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* */

#define _BSD_SOURCE
#define _GNU_SOURCE
#define _DEFAULT_SOURCE
#ifndef _BSD_SOURCE
#define _BSD_SOURCE 1
#endif

#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif

#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE 1
#endif

#include <cdk.h>
#include <locale.h>
Expand Down

0 comments on commit a18d130

Please sign in to comment.