summaryrefslogtreecommitdiff
path: root/tests/stdio_test.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2016-09-15 13:55:41 -0700
committerJosh Gao <jmgao@google.com>2016-09-15 14:21:28 -0700
commitb36efa4343d79e3fb548d12d039193850246b892 (patch)
tree727ac48a5341d8d50d6a297fe67f6067005befd3 /tests/stdio_test.cpp
parent56228373014e5ee0a3ff32930df9cfa05fef7389 (diff)
Fix instances of '#if __LP64__'.
Triggers -Wundef, which is on in -Weverything. Bug: http://b/31496165 Change-Id: Ib06107073f7dd1d584c19c222d0430da9d35630b
Diffstat (limited to 'tests/stdio_test.cpp')
-rw-r--r--tests/stdio_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stdio_test.cpp b/tests/stdio_test.cpp
index 79c5e9255..63da9e040 100644
--- a/tests/stdio_test.cpp
+++ b/tests/stdio_test.cpp
@@ -548,7 +548,7 @@ TEST(STDIO_TEST, snprintf_d_INT_MIN) {
TEST(STDIO_TEST, snprintf_ld_LONG_MAX) {
char buf[BUFSIZ];
snprintf(buf, sizeof(buf), "%ld", LONG_MAX);
-#if __LP64__
+#if defined(__LP64__)
EXPECT_STREQ("9223372036854775807", buf);
#else
EXPECT_STREQ("2147483647", buf);
@@ -558,7 +558,7 @@ TEST(STDIO_TEST, snprintf_ld_LONG_MAX) {
TEST(STDIO_TEST, snprintf_ld_LONG_MIN) {
char buf[BUFSIZ];
snprintf(buf, sizeof(buf), "%ld", LONG_MIN);
-#if __LP64__
+#if defined(__LP64__)
EXPECT_STREQ("-9223372036854775808", buf);
#else
EXPECT_STREQ("-2147483648", buf);