Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CCPlatformConfig.h #20693

Merged
merged 1 commit into from Nov 17, 2021
Merged

Update CCPlatformConfig.h #20693

merged 1 commit into from Nov 17, 2021

Conversation

crazyhappygame
Copy link
Contributor

@crazyhappygame crazyhappygame commented Nov 14, 2021

With latest ndk23 there is no more ANDROID define.
The correct way (before and now) is to use __ANDROID__
https://iq.opengenus.org/detect-operating-system-in-c/

With latest ndk23 there is no move ANDROID define. 
The correct way (before and now) is to use __ANDROID__
https://iq.opengenus.org/detect-operating-system-in-c/
@minggo
Copy link
Contributor

minggo commented Nov 15, 2021

What will happen if using lower NDK versions?

@crazyhappygame
Copy link
Contributor Author

What will happen if using lower NDK versions?

Everything will work. Please check appveyor android build is green.
__ANDROID__ define is the proper way to check Android platform.

BTW. Do you know what happen with Travis CI check? Only appveyor is running now.

@minggo
Copy link
Contributor

minggo commented Nov 15, 2021

Sorry, i don't know Travis CI issue.

@crazyhappygame
Copy link
Contributor Author

@minggo could you merge it?

@minggo minggo merged commit 6e6cdb6 into cocos2d:v3 Nov 17, 2021
stevetranby added a commit to stevetranby/cocos2d-x that referenced this pull request Dec 18, 2021
* commit '64977e5aa21c6de22fd435ff96ce8eddcb57af40':
  Support python 2 and 3 (cocos2d#20698)
  Update CCPlatformConfig.h (cocos2d#20693)
stevetranby added a commit to stevetranby/cocos2d-x that referenced this pull request Jul 20, 2022
* commit 'cd7446f17956d73041f9b33b37b4c747c6bc1993':
  Create pch for all platforms V3 (cocos2d#20705)
  Fix mac build V3 (cocos2d#20703)
  Setup github actions for V3 (cocos2d#20701)
  Support python 2 and 3 (cocos2d#20698)
  Update CCPlatformConfig.h (cocos2d#20693)

# Conflicts:
#	cocos/audio/mac/CDAudioManager.m
#	cocos/audio/mac/CDXMacOSXSupport.h
#	cocos/scripting/js-bindings/CMakeLists.txt
rampr pushed a commit to hashcube/cocos2d-x that referenced this pull request Sep 29, 2022
With latest ndk23 there is no move ANDROID define. 
The correct way (before and now) is to use __ANDROID__
https://iq.opengenus.org/detect-operating-system-in-c/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants