Fix <locale.h> not defining NULL.
This commit is contained in:
parent
07e6c69097
commit
95bcd5667e
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2012, 2015 Jonas 'Sortie' Termansen.
|
* Copyright (c) 2012, 2015, 2017 Jonas 'Sortie' Termansen.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and distribute this software for any
|
* Permission to use, copy, modify, and distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
@ -22,10 +22,9 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <sys/__/types.h>
|
#ifndef NULL
|
||||||
|
#define __need_NULL
|
||||||
#ifdef __cplusplus
|
#include <stddef.h>
|
||||||
extern "C" {
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct lconv
|
struct lconv
|
||||||
|
@ -65,6 +64,10 @@ struct lconv
|
||||||
#define LC_ALL 6
|
#define LC_ALL 6
|
||||||
#define LC_NUM_CATEGORIES LC_ALL
|
#define LC_NUM_CATEGORIES LC_ALL
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
char* setlocale(int category, const char* locale);
|
char* setlocale(int category, const char* locale);
|
||||||
struct lconv* localeconv(void);
|
struct lconv* localeconv(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue