Commit 5e39ecc5 authored by Jisi Liu's avatar Jisi Liu Committed by GitHub

Merge pull request #3494 from drivehappy/clang_warning_macro

Fixing -Wexpansion-to-defined Clang warning
parents e0d24cc8 a23e198c
......@@ -256,8 +256,11 @@ static const uint64 kuint64max = GOOGLE_ULONGLONG(0xFFFFFFFFFFFFFFFF);
# define GOOGLE_PROTOBUF_USE_UNALIGNED 0
#else
// x86 and x86-64 can perform unaligned loads/stores directly.
# define GOOGLE_PROTOBUF_USE_UNALIGNED defined(_M_X64) || \
defined(__x86_64__) || defined(_M_IX86) || defined(__i386__)
# if defined(_M_X64) || defined(__x86_64__) || defined(_M_IX86) || defined(__i386__)
# define GOOGLE_PROTOBUF_USE_UNALIGNED 1
# else
# define GOOGLE_PROTOBUF_USE_UNALIGNED 0
# endif
#endif
#if GOOGLE_PROTOBUF_USE_UNALIGNED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment