Mercurial > dwindows
comparison dwcompat.h @ 2634:4d1bcfc617b2
iOS/Android: Since these don't use autoconf, define HAVE_DIRENT_H.
This allows iOS and Android to import opendir() and friends.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 09 Aug 2021 23:36:23 +0000 |
parents | 736282fddac5 |
children | 038f83009cdb |
comparison
equal
deleted
inserted
replaced
2633:3d20fcfd8583 | 2634:4d1bcfc617b2 |
---|---|
6 /* This header includes and defines everything needed for a given OS/compiler */ | 6 /* This header includes and defines everything needed for a given OS/compiler */ |
7 #if defined(__UNIX__) || defined(__MAC__) || defined(__IOS__) || defined(__ANDROID__) | 7 #if defined(__UNIX__) || defined(__MAC__) || defined(__IOS__) || defined(__ANDROID__) |
8 /* iOS and Android currently don't use autoconf */ | 8 /* iOS and Android currently don't use autoconf */ |
9 #if !defined(__IOS__) && !defined(__ANDROID__) | 9 #if !defined(__IOS__) && !defined(__ANDROID__) |
10 #include "dwconfig.h" | 10 #include "dwconfig.h" |
11 #else | |
12 #define HAVE_DIRENT_H 1 | |
11 #endif | 13 #endif |
12 | 14 |
13 /* Attempt to include 64 bit file functions on various unix flavors */ | 15 /* Attempt to include 64 bit file functions on various unix flavors */ |
14 #ifndef _FILE_OFFSET_BITS | 16 #ifndef _FILE_OFFSET_BITS |
15 #define _FILE_OFFSET_BITS 64 | 17 #define _FILE_OFFSET_BITS 64 |