Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(723)

Side by Side Diff: third_party/protobuf/src/google/protobuf/stubs/platform_macros.h

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2012 Google Inc. All rights reserved. 2 // Copyright 2012 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 29 matching lines...) Expand all
40 // or with gcc, run: "echo | gcc -E -dM -" 40 // or with gcc, run: "echo | gcc -E -dM -"
41 #if defined(_M_X64) || defined(__x86_64__) 41 #if defined(_M_X64) || defined(__x86_64__)
42 #define GOOGLE_PROTOBUF_ARCH_X64 1 42 #define GOOGLE_PROTOBUF_ARCH_X64 1
43 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1 43 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1
44 #elif defined(_M_IX86) || defined(__i386__) 44 #elif defined(_M_IX86) || defined(__i386__)
45 #define GOOGLE_PROTOBUF_ARCH_IA32 1 45 #define GOOGLE_PROTOBUF_ARCH_IA32 1
46 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1 46 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
47 #elif defined(__QNX__) 47 #elif defined(__QNX__)
48 #define GOOGLE_PROTOBUF_ARCH_ARM_QNX 1 48 #define GOOGLE_PROTOBUF_ARCH_ARM_QNX 1
49 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1 49 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
50 #elif defined(__ARMEL__) 50 #elif defined(_M_ARM) || defined(__ARMEL__)
51 #define GOOGLE_PROTOBUF_ARCH_ARM 1 51 #define GOOGLE_PROTOBUF_ARCH_ARM 1
52 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1 52 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
53 #elif defined(__aarch64__) 53 #elif defined(__aarch64__)
54 #define GOOGLE_PROTOBUF_ARCH_AARCH64 1 54 #define GOOGLE_PROTOBUF_ARCH_AARCH64 1
55 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1 55 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1
56 #elif defined(__MIPSEL__) 56 #elif defined(__MIPSEL__)
57 #if defined(__LP64__) 57 #if defined(__LP64__)
58 #define GOOGLE_PROTOBUF_ARCH_MIPS64 1 58 #define GOOGLE_PROTOBUF_ARCH_MIPS64 1
59 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1 59 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1
60 #else 60 #else
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #elif defined(sun) 107 #elif defined(sun)
108 #define GOOGLE_PROTOBUF_OS_SOLARIS 108 #define GOOGLE_PROTOBUF_OS_SOLARIS
109 #elif defined(_AIX) 109 #elif defined(_AIX)
110 #define GOOGLE_PROTOBUF_OS_AIX 110 #define GOOGLE_PROTOBUF_OS_AIX
111 #elif defined(__ANDROID__) 111 #elif defined(__ANDROID__)
112 #define GOOGLE_PROTOBUF_OS_ANDROID 112 #define GOOGLE_PROTOBUF_OS_ANDROID
113 #endif 113 #endif
114 114
115 #undef GOOGLE_PROTOBUF_PLATFORM_ERROR 115 #undef GOOGLE_PROTOBUF_PLATFORM_ERROR
116 116
117 #if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE) 117 #if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE) || defined(__OpenBSD__)
118 // Android ndk does not support the __thread keyword very well yet. Here 118 // Android ndk does not support the __thread keyword very well yet. Here
119 // we use pthread_key_create()/pthread_getspecific()/... methods for 119 // we use pthread_key_create()/pthread_getspecific()/... methods for
120 // TLS support on android. 120 // TLS support on android.
121 // iOS also does not support the __thread keyword. 121 // iOS and OpenBSD also do not support the __thread keyword.
122 #define GOOGLE_PROTOBUF_NO_THREADLOCAL 122 #define GOOGLE_PROTOBUF_NO_THREADLOCAL
123 #endif 123 #endif
124 124
125 #endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_ 125 #endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_
OLDNEW
« no previous file with comments | « third_party/protobuf/src/google/protobuf/stubs/once_unittest.cc ('k') | third_party/protobuf/src/google/protobuf/stubs/port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698