allow multi-include on some headers

This commit is contained in:
Grazvydas Ignotas 2013-06-16 02:57:00 +03:00
parent da0cc55643
commit 7bf7acb6d6
5 changed files with 22 additions and 1 deletions

5
gl.h
View file

@ -1,3 +1,6 @@
#ifndef LIBPICOFE_GL_H
#define LIBPICOFE_GL_H
#ifdef HAVE_GLES
int gl_init(void *display, void *window, int *quirks);
@ -28,3 +31,5 @@ static __inline void gl_finish(void)
#endif
#define GL_QUIRK_ACTIVATE_RECREATE 1
#endif // LIBPICOFE_GL_H

View file

@ -1,3 +1,5 @@
#ifndef LIBPICOFE_XENV_H
#define LIBPICOFE_XENV_H
#define XENV_CAP_KEYS (1<<0)
#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);
void xenv_finish(void);
#endif // LIBPICOFE_XENV_H

5
menu.h
View file

@ -8,6 +8,9 @@
* See the COPYING file in the top-level directory.
*/
#ifndef LIBPICOFE_MENU_H
#define LIBPICOFE_MENU_H
typedef enum
{
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_next(void);
#endif // LIBPICOFE_MENU_H

View file

@ -1,3 +1,6 @@
#ifndef LIBPICOFE_POSIX_H
#define LIBPICOFE_POSIX_H
/* define POSIX stuff: dirent, scandir, getcwd, mkdir */
#if defined(__linux__) || defined(__MINGW32__)
@ -20,4 +23,4 @@
#endif
#endif // LIBPICOFE_POSIX_H

View file

@ -1,3 +1,6 @@
#ifndef LIBPICOFE_READPNG_H
#define LIBPICOFE_READPNG_H
typedef enum
{
READPNG_BG = 1,
@ -17,3 +20,5 @@ int writepng(const char *fname, unsigned short *src, int w, int h);
#ifdef __cplusplus
}
#endif
#endif // LIBPICOFE_READPNG_H