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

Unified Diff: ipc/ipc_message_macros.h

Issue 684273002: Remove last non-third_party typeofs on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/tests/test_broker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_macros.h
diff --git a/ipc/ipc_message_macros.h b/ipc/ipc_message_macros.h
index 96cc20ba85ff1abefa378738cc0e83678b188385..20c83350733453312d233c7fae8fbab646ee6e19 100644
--- a/ipc/ipc_message_macros.h
+++ b/ipc/ipc_message_macros.h
@@ -897,18 +897,10 @@
const IPC::Message& ipc_message__ = msg; \
switch (ipc_message__.type()) {
-// gcc gives the following error now when using decltype so type typeof there:
-// error: identifier 'decltype' will become a keyword in C++0x [-Werror=c++0x-compat]
-#if defined(OS_WIN)
-#define IPC_DECLTYPE decltype
-#else
-#define IPC_DECLTYPE typeof
-#endif
-
#define IPC_BEGIN_MESSAGE_MAP_WITH_PARAM(class_name, msg, param) \
{ \
typedef class_name _IpcMessageHandlerClass ALLOW_UNUSED_TYPE; \
- IPC_DECLTYPE(param) param__ = param; \
+ decltype(param) param__ = param; \
const IPC::Message& ipc_message__ = msg; \
switch (ipc_message__.type()) {
« no previous file with comments | « no previous file | ppapi/tests/test_broker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698