1 /*         ______   ___    ___
2  *        /\  _  \ /\_ \  /\_ \
3  *        \ \ \L\ \\//\ \ \//\ \      __     __   _ __   ___
4  *         \ \  __ \ \ \ \  \ \ \   /'__`\ /'_ `\/\`'__\/ __`\
5  *          \ \ \/\ \ \_\ \_ \_\ \_/\  __//\ \L\ \ \ \//\ \L\ \
6  *           \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
7  *            \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
8  *                                           /\____/
9  *                                           \_/__/
10  *
11  *      Configuration defines for use with PSP.
12  *
13  *      By diedel.
14  *
15  *      See readme.txt for copyright information.
16  */
17 
18 
19 #ifndef ALPSPCFG_H
20 #define ALPSPCFG_H
21 
22 #ifndef SCAN_DEPEND
23    #include <fcntl.h>
24    #include <unistd.h>
25 #endif
26 
27 
28 #ifndef ALLEGRO_NO_MAGIC_MAIN
29    #define ALLEGRO_MAGIC_MAIN
30    #define main _mangled_main
31    #undef END_OF_MAIN
32    #define END_OF_MAIN() void *_mangled_main_address = (void *) _mangled_main;
33 #else
34    #undef END_OF_MAIN
35    #define END_OF_MAIN() void *_mangled_main_address;
36 #endif
37 
38 
39 /* Provide implementations of missing definitions */
40 #define dup(X)	(fcntl(X, F_DUPFD, 0))
41 
42 
43 /* TODO: Use the configure script. */
44 /* A static auto config */
45 //#define ALLEGRO_HAVE_LIBPTHREAD 1
46 #define ALLEGRO_HAVE_DIRENT_H   1
47 #define ALLEGRO_HAVE_INTTYPES_H 1
48 #define ALLEGRO_HAVE_STDINT_H   1
49 #define ALLEGRO_HAVE_SYS_TIME_H 1
50 #define ALLEGRO_HAVE_SYS_STAT_H 1
51 
52 /* Describe this platform */
53 #define ALLEGRO_PLATFORM_STR  "PlayStation Portable"
54 #define ALLEGRO_USE_CONSTRUCTOR
55 
56 #define ALLEGRO_LITTLE_ENDIAN
57 
58 /* Exclude ASM */
59 #ifndef ALLEGRO_NO_ASM
60    #define ALLEGRO_NO_ASM
61 #endif
62 
63 /* Arrange for other headers to be included later on */
64 #define ALLEGRO_EXTRA_HEADER     "allegro/platform/alpsp.h"
65 
66 
67 #endif
68