Skip to content

Commit

Permalink
iOS support (thanks Caleb!)
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Feb 19, 2019
1 parent 56ec97f commit 1cf60c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Expand Up @@ -94,7 +94,9 @@ IF(COMPILER_SUPPORT)
ENDIF(COMPILER_SUPPORT)

IF(APPLE)
find_library(CARBON_FRAMEWORK Carbon) # Stupid Gestalt.
IF(NOT IOS)
find_library(CARBON_FRAMEWORK Carbon) # Stupid Gestalt.
ENDIF(NOT IOS)
ENDIF(APPLE)

IF(NOT PROFILE_D3D)
Expand Down
4 changes: 0 additions & 4 deletions mojoshader_internal.h
Expand Up @@ -23,10 +23,6 @@
#define DEBUG_TOKENIZER \
(DEBUG_PREPROCESSOR || DEBUG_ASSEMBLER_PARSER || DEBUG_LEXER)

#if (defined(__APPLE__) && defined(__MACH__))
#define PLATFORM_MACOSX 1
#endif

// This is the highest shader version we currently support.

#define MAX_SHADER_MAJOR 3
Expand Down
5 changes: 4 additions & 1 deletion mojoshader_opengl.c
Expand Up @@ -20,8 +20,11 @@
#endif

#if (defined(__APPLE__) && defined(__MACH__))
#include "TargetConditionals.h"
#if !TARGET_OS_IPHONE && !TARGET_OS_TV
#define PLATFORM_MACOSX 1
#endif
#endif /* !TARGET_OS_IPHONE && !TARGET_OS_TV */
#endif /* (defined(__APPLE__) && defined(__MACH__)) */

#if PLATFORM_MACOSX
#include <Carbon/Carbon.h>
Expand Down

0 comments on commit 1cf60c0

Please sign in to comment.