Skip to content

Commit

Permalink
Forcibly define _XOPEN_SOURCE
Browse files Browse the repository at this point in the history
This is needed for ncurses.h to provide the wide character API. On
Linux, pkg-config takes care of adding this feature-enabling macro,
but this does not seem to work on macOS 14.
  • Loading branch information
edgar-bonet committed Nov 23, 2023
1 parent 3c41c23 commit eb763b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ttyplot.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
// Apache License 2.0
//

// This is needed to get the ncurses widechar API. Define it here if pkg-config didn't.
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
#endif

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Expand Down

0 comments on commit eb763b2

Please sign in to comment.