mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-04 22:47:44 -04:00
allow multi-include on some headers
This commit is contained in:
parent
da0cc55643
commit
7bf7acb6d6
5 changed files with 22 additions and 1 deletions
5
gl.h
5
gl.h
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef LIBPICOFE_GL_H
|
||||||
|
#define LIBPICOFE_GL_H
|
||||||
|
|
||||||
#ifdef HAVE_GLES
|
#ifdef HAVE_GLES
|
||||||
|
|
||||||
int gl_init(void *display, void *window, int *quirks);
|
int gl_init(void *display, void *window, int *quirks);
|
||||||
|
@ -28,3 +31,5 @@ static __inline void gl_finish(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GL_QUIRK_ACTIVATE_RECREATE 1
|
#define GL_QUIRK_ACTIVATE_RECREATE 1
|
||||||
|
|
||||||
|
#endif // LIBPICOFE_GL_H
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#ifndef LIBPICOFE_XENV_H
|
||||||
|
#define LIBPICOFE_XENV_H
|
||||||
|
|
||||||
#define XENV_CAP_KEYS (1<<0)
|
#define XENV_CAP_KEYS (1<<0)
|
||||||
#define XENV_CAP_MOUSE (1<<1)
|
#define XENV_CAP_MOUSE (1<<1)
|
||||||
|
@ -16,3 +18,4 @@ int xenv_update(int (*key_cb)(void *cb_arg, int kc, int is_pressed),
|
||||||
int xenv_minimize(void);
|
int xenv_minimize(void);
|
||||||
void xenv_finish(void);
|
void xenv_finish(void);
|
||||||
|
|
||||||
|
#endif // LIBPICOFE_XENV_H
|
||||||
|
|
5
menu.h
5
menu.h
|
@ -8,6 +8,9 @@
|
||||||
* See the COPYING file in the top-level directory.
|
* See the COPYING file in the top-level directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBPICOFE_MENU_H
|
||||||
|
#define LIBPICOFE_MENU_H
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
MB_NONE = 1, /* no auto processing */
|
MB_NONE = 1, /* no auto processing */
|
||||||
|
@ -123,3 +126,5 @@ void text_out16(int x, int y, const char *texto, ...);
|
||||||
|
|
||||||
menu_entry *me_list_get_first(void);
|
menu_entry *me_list_get_first(void);
|
||||||
menu_entry *me_list_get_next(void);
|
menu_entry *me_list_get_next(void);
|
||||||
|
|
||||||
|
#endif // LIBPICOFE_MENU_H
|
||||||
|
|
5
posix.h
5
posix.h
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef LIBPICOFE_POSIX_H
|
||||||
|
#define LIBPICOFE_POSIX_H
|
||||||
|
|
||||||
/* define POSIX stuff: dirent, scandir, getcwd, mkdir */
|
/* define POSIX stuff: dirent, scandir, getcwd, mkdir */
|
||||||
#if defined(__linux__) || defined(__MINGW32__)
|
#if defined(__linux__) || defined(__MINGW32__)
|
||||||
|
|
||||||
|
@ -20,4 +23,4 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // LIBPICOFE_POSIX_H
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef LIBPICOFE_READPNG_H
|
||||||
|
#define LIBPICOFE_READPNG_H
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
READPNG_BG = 1,
|
READPNG_BG = 1,
|
||||||
|
@ -17,3 +20,5 @@ int writepng(const char *fname, unsigned short *src, int w, int h);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // LIBPICOFE_READPNG_H
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue