Skip to content

Commit

Permalink
Fix unified header related issues:
Browse files Browse the repository at this point in the history
  1) included OpenSLES.h BEFORE OpenSLES_Android.h
       OpenSLES.h inclusion is removed from OpenSLES_Abndroid.h
  2) added stdlib.h/cstdlib concerning malloc for sample
       endless tunnel
       native-activity
       teapots derivative samples
  • Loading branch information
ggfan committed Mar 23, 2017
1 parent dc29d85 commit 68a03a8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions audio-echo/app/src/main/cpp/audio_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#ifndef NATIVE_AUDIO_AUDIO_COMMON_H
#define NATIVE_AUDIO_AUDIO_COMMON_H

#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>

#include "android_debug.h"
Expand Down
1 change: 0 additions & 1 deletion audio-echo/app/src/main/cpp/audio_player.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef NATIVE_AUDIO_AUDIO_PLAYER_H
#define NATIVE_AUDIO_AUDIO_PLAYER_H
#include <sys/types.h>
#include <SLES/OpenSLES_Android.h>
#include "audio_common.h"
#include "buf_manager.h"
#include "debug_utils.h"
Expand Down
1 change: 1 addition & 0 deletions endless-tunnel/app/src/main/cpp/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ extern "C" {
#include <android/log.h>
#include <android_native_app_glue.h>
#include <unistd.h>
#include <stdlib.h>
}
#include "glm/glm.hpp"
#include "glm/gtc/type_ptr.hpp"
Expand Down
1 change: 1 addition & 0 deletions native-activity/app/src/main/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
//BEGIN_INCLUDE(all)
#include <initializer_list>
#include <memory>
#include <cstdlib>
#include <jni.h>
#include <errno.h>
#include <cassert>
Expand Down
2 changes: 1 addition & 1 deletion teapots/common/ndk_helper/shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include <cstdlib>
#include <EGL/egl.h>
#include <GLES2/gl2.h>

Expand Down

0 comments on commit 68a03a8

Please sign in to comment.