* commit '6bafdcb5083b81d295676ee0ff75f62b31214150': Fix build in C++11 mode
This commit is contained in:
commit
e854d1c5de
3 changed files with 7 additions and 8 deletions
|
@ -35,7 +35,6 @@ LOCAL_C_INCLUDES += \
|
|||
frameworks/native/include \
|
||||
|
||||
LOCAL_CFLAGS += -Wall -Wextra
|
||||
LOCAL_CPPFLAGS := -std=gnu++98
|
||||
LOCAL_MODULE:= camera2_test
|
||||
LOCAL_MODULE_STEM_32 := camera2_test
|
||||
LOCAL_MODULE_STEM_64 := camera2_test64
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
#define dout if (0) std::cout
|
||||
#endif
|
||||
|
||||
#define WARN_UNLESS(condition) (!(condition) ? (std::cerr) : (std::ostream(NULL)) << "Warning: ")
|
||||
#define WARN_UNLESS(condition) if(!(condition)) std::cerr << "Warning: "
|
||||
#define WARN_LE(exp, act) WARN_UNLESS((exp) <= (act))
|
||||
#define WARN_LT(exp, act) WARN_UNLESS((exp) < (act))
|
||||
#define WARN_GT(exp, act) WARN_UNLESS((exp) > (act))
|
||||
|
|
Loading…
Reference in a new issue