Browse Source

Platform: wrap Android-specific header in preprocessor better.

pull/205/head
Vladimír Vondruš 8 years ago
parent
commit
7295a7c0c9
  1. 10
      src/Magnum/Platform/AndroidApplication.h

10
src/Magnum/Platform/AndroidApplication.h

@ -25,9 +25,11 @@
DEALINGS IN THE SOFTWARE. DEALINGS IN THE SOFTWARE.
*/ */
#if defined(CORRADE_TARGET_ANDROID) || defined(DOXYGEN_GENERATING_OUTPUT)
/** @file /** @file
* @brief Class @ref Magnum::Platform::AndroidApplication, macro @ref MAGNUM_ANDROIDAPPLICATION_MAIN() * @brief Class @ref Magnum::Platform::AndroidApplication, macro @ref MAGNUM_ANDROIDAPPLICATION_MAIN()
*/ */
#endif
#include <memory> #include <memory>
#include <EGL/egl.h> #include <EGL/egl.h>
@ -37,10 +39,7 @@
#include "Magnum/Math/Vector2.h" #include "Magnum/Math/Vector2.h"
#include "Magnum/Platform/Platform.h" #include "Magnum/Platform/Platform.h"
#ifndef CORRADE_TARGET_ANDROID #if defined(CORRADE_TARGET_ANDROID) || defined(DOXYGEN_GENERATING_OUTPUT)
#error this file is available only on Android build
#endif
#include <android/input.h> #include <android/input.h>
/* Undef Xlib nonsense which might get pulled in by EGL */ /* Undef Xlib nonsense which might get pulled in by EGL */
@ -564,5 +563,8 @@ typedef AndroidApplication Application;
#endif #endif
}} }}
#else
#error this file is available only on Android build
#endif
#endif #endif

Loading…
Cancel
Save