1 /* File: h-basic.h */ 2 3 #ifndef INCLUDED_H_BASIC_H 4 #define INCLUDED_H_BASIC_H 5 6 /* 7 * The most basic "include" file. 8 * 9 * This file simply includes other low level header files. 10 */ 11 12 /* System Configuration (autocollected) */ 13 #ifdef HAVE_CONFIG_H 14 #include <config.h> 15 #else 16 #if !defined(_MSC_VER) && !defined(ON_IOS) && !defined(ON_ANDROID) 17 //#pragma message( "warning: Your build lacks 'src/config.h', reverting to crazy defaults" ) /* portable but stupid */ 18 #warning "Your build lacks 'src/config.h', reverting to crazy defaults" /* good but not portable */ 19 #endif 20 #endif 21 22 /* System Configuration */ 23 #include "../h-config.h" 24 25 /* For systems lacking CONFIG_H */ 26 #ifdef ON_IOS 27 #define HAVE_MEMSET 1 28 #define HAVE_STRNLEN 1 29 #define HAVE_INTTYPES_H 1 30 #define HAVE_DIRENT_H 31 #define HAVE_SELECT 1 32 33 #define PKGDATADIR "./" 34 #ifndef USE_SDL2 35 #define USE_SDL2 36 #endif 37 #ifndef USE_SDL2_TTF 38 #define USE_SDL2_TTF 39 #endif 40 #define MOBILE_UI 41 #endif 42 43 #ifdef ON_ANDROID 44 #define HAVE_MEMSET 1 45 #define HAVE_STRNLEN 1 46 #define HAVE_DIRENT_H 47 #define HAVE_INTTYPES_H 1 48 #define HAVE_SELECT 1 49 #define MOBILE_UI 50 #define USE_SDL2 1 51 #define USE_SDL2_TTF 1 52 #define PKGDATADIR "lib/" 53 #define USE_SDL_RWOPS 54 #endif 55 56 /* System includes/externs */ 57 #include "h-system.h" 58 59 /* Basic types */ 60 #include "h-type.h" 61 62 /* Basic constants and macros */ 63 #include "h-define.h" 64 65 /* Basic networking stuff */ 66 #include "h-net.h" 67 68 69 #endif 70