mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
cogl: Make cogl-config.h include check explicit
Don't rely on some combination of macros, but an explicit definition to check whether cogl-config.h was included.
This commit is contained in:
parent
9dbdf6b724
commit
d68fcbc887
@ -3,3 +3,5 @@
|
|||||||
|
|
||||||
/* Have GLES 2.0 for rendering */
|
/* Have GLES 2.0 for rendering */
|
||||||
#undef HAVE_COGL_GLES2
|
#undef HAVE_COGL_GLES2
|
||||||
|
|
||||||
|
#define COGL_CONFIG_H_INCLUDED 1
|
||||||
|
@ -40,9 +40,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/* Double check that config.h has been included */
|
/* Double check that config.h has been included */
|
||||||
#if (!defined (PACKAGE_NAME) && \
|
#ifndef COGL_CONFIG_H_INCLUDED
|
||||||
!defined (_COGL_IN_TEST_BITMASK) && \
|
|
||||||
!defined(COGL_ENABLE_MUTTER_API))
|
|
||||||
#error "cogl-config.h must be included before including cogl-util.h"
|
#error "cogl-config.h must be included before including cogl-util.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -673,6 +673,8 @@ AC_SUBST(COGL_EXTRA_LDFLAGS)
|
|||||||
MAINTAINER_CFLAGS=
|
MAINTAINER_CFLAGS=
|
||||||
AC_SUBST(MAINTAINER_CFLAGS)
|
AC_SUBST(MAINTAINER_CFLAGS)
|
||||||
|
|
||||||
|
AC_DEFINE([COGL_CONFIG_H_INCLUDED], 1, [cogl-config.h was included])
|
||||||
|
|
||||||
AC_OUTPUT(
|
AC_OUTPUT(
|
||||||
Makefile
|
Makefile
|
||||||
test-fixtures/Makefile
|
test-fixtures/Makefile
|
||||||
|
Loading…
Reference in New Issue
Block a user