portability
This commit is contained in:
parent
635d5166ce
commit
84e4162435
@ -47,6 +47,7 @@ handling times must be cleaned, but that not only holds for this module.
|
|||||||
#include "pl-utf8.h"
|
#include "pl-utf8.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#ifdef HAVE_SYS_SELECT_H
|
#ifdef HAVE_SYS_SELECT_H
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif
|
#endif
|
||||||
@ -66,6 +67,9 @@ handling times must be cleaned, but that not only holds for this module.
|
|||||||
#ifdef HAVE_BSTRING_H
|
#ifdef HAVE_BSTRING_H
|
||||||
#include <bstring.h>
|
#include <bstring.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_ALLOCA_H
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define LOCK() PL_LOCK(L_FILE) /* MT locking */
|
#define LOCK() PL_LOCK(L_FILE) /* MT locking */
|
||||||
#define UNLOCK() PL_UNLOCK(L_FILE)
|
#define UNLOCK() PL_UNLOCK(L_FILE)
|
||||||
|
@ -43,6 +43,7 @@ is supposed to give the POSIX standard one.
|
|||||||
#include "pl-incl.h"
|
#include "pl-incl.h"
|
||||||
#include "pl-ctype.h"
|
#include "pl-ctype.h"
|
||||||
#include "pl-utf8.h"
|
#include "pl-utf8.h"
|
||||||
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h> /* rename() and remove() prototypes */
|
#include <stdio.h> /* rename() and remove() prototypes */
|
||||||
|
|
||||||
@ -60,6 +61,9 @@ is supposed to give the POSIX standard one.
|
|||||||
#if HAVE_SYS_STAT_H
|
#if HAVE_SYS_STAT_H
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_ALLOCA_H
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
#ifdef O_XOS
|
#ifdef O_XOS
|
||||||
#define statstruct struct _stati64
|
#define statstruct struct _stati64
|
||||||
#else
|
#else
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#else
|
#else
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#if __ANDROID__
|
#if __ANDROID__
|
||||||
#include <android/asset_manager.h>
|
#include <android/asset_manager.h>
|
||||||
|
Reference in New Issue
Block a user