2
0
mirror of synced 2025-02-22 14:28:14 +00:00

all: add -DGLES_SILENCE_DEPRECATION instead of #define

Defining GLES_SILENCE_DEPRECATION did not take any effects. Use -D
instead.

Change-Id: I9c0602b38d39020b9539fdb8030fef3a7b366929
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/374499
Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com>
Trust: Hajime Hoshi <hajimehoshi@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Hajime Hoshi 2022-01-05 02:33:09 +09:00
parent cde37c62e1
commit 5579029ea0
4 changed files with 2 additions and 5 deletions

View File

@ -8,7 +8,7 @@
package app package app
/* /*
#cgo CFLAGS: -x objective-c -DGL_SILENCE_DEPRECATION #cgo CFLAGS: -x objective-c -DGL_SILENCE_DEPRECATION -DGLES_SILENCE_DEPRECATION
#cgo LDFLAGS: -framework Foundation -framework UIKit -framework GLKit -framework OpenGLES -framework QuartzCore #cgo LDFLAGS: -framework Foundation -framework UIKit -framework GLKit -framework OpenGLES -framework QuartzCore
#include <sys/utsname.h> #include <sys/utsname.h>
#include <stdint.h> #include <stdint.h>

View File

@ -10,8 +10,6 @@
#include <stdio.h> #include <stdio.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#define GLES_SILENCE_DEPRECATION
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <GLKit/GLKit.h> #import <GLKit/GLKit.h>

View File

@ -16,7 +16,7 @@ package gl
#cgo android CFLAGS: -Dos_android #cgo android CFLAGS: -Dos_android
#cgo ios CFLAGS: -Dos_ios #cgo ios CFLAGS: -Dos_ios
#cgo darwin,!ios CFLAGS: -Dos_macos #cgo darwin,!ios CFLAGS: -Dos_macos
#cgo darwin CFLAGS: -DGL_SILENCE_DEPRECATION #cgo darwin CFLAGS: -DGL_SILENCE_DEPRECATION -DGLES_SILENCE_DEPRECATION
#cgo linux CFLAGS: -Dos_linux #cgo linux CFLAGS: -Dos_linux
#cgo openbsd CFLAGS: -Dos_openbsd #cgo openbsd CFLAGS: -Dos_openbsd

View File

@ -15,7 +15,6 @@
#endif #endif
#ifdef os_ios #ifdef os_ios
#define GLES_SILENCE_DEPRECATION
#include <OpenGLES/ES2/glext.h> #include <OpenGLES/ES2/glext.h>
#endif #endif