Skip to content

Commit

Permalink
__USE_XOPEN is not a proper feature test macro; use _XOPEN_SOURCE.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlopezroche committed Sep 17, 2019
1 parent 85c5f9e commit fdec6bb
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AC_CHECK_HEADERS([getopt.h ncursesw/curses.h])

AS_IF([test x"$with_ncurses" != x"no"],
[AC_SEARCH_LIBS([wget_wch], [ncursesw ncurses curses], [], [AC_ERROR([ncurses library not found (or lacks wide character support)])])]
[AC_DEFINE([__USE_XOPEN], [], [enable certain functions in wchar.h])]
[AC_DEFINE([_XOPEN_SOURCE], [], [enable certain functions in wchar.h])]
[AC_DEFINE([_XOPEN_SOURCE_EXTENDED], [], [enable certain functions in curses.h])]
[AC_SEARCH_LIBS([pcre2_match_8], [pcre2-8], [], [AC_ERROR([pcre2 library not found])])]
[AC_DEFINE([PCRE2_CODE_UNIT_WIDTH], [8], [PCRE2 Code Unit Width])],
Expand Down
2 changes: 1 addition & 1 deletion errormsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. */

#include <config.h>
#include "config.h"
#include <stdio.h>
#include <stdarg.h>
#include "errormsg.h"
Expand Down
2 changes: 1 addition & 1 deletion fdupes.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include <config.h>
#include "config.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion ncurses-commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include <config.h>
#include "config.h"
#include "ncurses-status.h"
#include "ncurses-commands.h"
#include "wcs.h"
Expand Down
1 change: 1 addition & 0 deletions ncurses-getcommand.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include "config.h"
#include <stdlib.h>
#include <signal.h>
#include "ncurses-getcommand.h"
Expand Down
2 changes: 1 addition & 1 deletion ncurses-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include <config.h>
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
Expand Down
1 change: 1 addition & 0 deletions ncurses-print.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include "config.h"
#include <stdlib.h>
#include <wchar.h>
#include "ncurses-print.h"
Expand Down
1 change: 1 addition & 0 deletions ncurses-prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include "config.h"
#include <stdlib.h>
#include "ncurses-print.h"
#include "ncurses-prompt.h"
Expand Down

0 comments on commit fdec6bb

Please sign in to comment.