conditional os in UI xml, add system dialog file open on osx, check api format or error message when opening a document, per-char text wrap on NodeText, additional info on create doc dialog like working path
This commit is contained in:
23
src/pch.h
23
src/pch.h
@@ -8,21 +8,7 @@
|
||||
#ifdef __APPLE__
|
||||
|
||||
#include "TargetConditionals.h"
|
||||
#if TARGET_OS_IPHONE && TARGET_IPHONE_SIMULATOR
|
||||
#define TARGET_OS_IOS 1
|
||||
#define __IOS__ 1
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#ifdef __OBJC__
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AVFoundation/AVFoundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <GLKit/GLKit.h>
|
||||
#endif
|
||||
#include <OpenGLES/ES3/gl.h>
|
||||
#include <OpenGLES/ES3/glext.h>
|
||||
#define SHADER_VERSION "#version 300 es\n"
|
||||
#elif TARGET_OS_IPHONE
|
||||
#define TARGET_OS_IOS 1
|
||||
#if TARGET_OS_IOS
|
||||
#define __IOS__ 1
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#ifdef __OBJC__
|
||||
@@ -34,8 +20,8 @@
|
||||
#include <OpenGLES/ES3/gl.h>
|
||||
#include <OpenGLES/ES3/glext.h>
|
||||
#define SHADER_VERSION "#version 300 es\n"
|
||||
#define PP_OS "ios"
|
||||
#else
|
||||
#define TARGET_OS_OSX 1
|
||||
#define __OSX__ 1
|
||||
#ifdef __OBJC__
|
||||
#import <Foundation/Foundation.h>
|
||||
@@ -44,6 +30,7 @@
|
||||
#include <OpenGL/gl3.h>
|
||||
#include <OpenGL/gl3ext.h>
|
||||
#define SHADER_VERSION "#version 150\n"
|
||||
#define PP_OS "osx"
|
||||
#endif
|
||||
|
||||
#include <sys/stat.h>
|
||||
@@ -51,6 +38,7 @@
|
||||
#include <dirent.h>
|
||||
|
||||
#elif __ANDROID__
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
#include <GLES3/gl3.h>
|
||||
@@ -61,8 +49,10 @@
|
||||
#include <android_native_app_glue.h>
|
||||
|
||||
#define SHADER_VERSION "#version 300 es\n"
|
||||
#define PP_OS "android"
|
||||
|
||||
#elif _WIN32
|
||||
|
||||
#define _USE_MATH_DEFINES
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#define _SCL_SECURE_NO_WARNINGS
|
||||
@@ -77,6 +67,7 @@
|
||||
#include <shlwapi.h>
|
||||
|
||||
#define SHADER_VERSION "#version 150\n"
|
||||
#define PP_OS "win"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user