summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_message_macros.h
diff options
context:
space:
mode:
authorzturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-12 01:29:56 +0000
committerzturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-12 01:29:56 +0000
commitd31c53449787ba09aaea6251d9ac878669218817 (patch)
tree21b0a1f8bfb68792651848d252b675ff6706d58b /ipc/ipc_message_macros.h
parent7ef58d5b9c29dd112bbf98febe1854588ff7e04d (diff)
downloadchromium_src-d31c53449787ba09aaea6251d9ac878669218817.zip
chromium_src-d31c53449787ba09aaea6251d9ac878669218817.tar.gz
chromium_src-d31c53449787ba09aaea6251d9ac878669218817.tar.bz2
Workaround for VS2013 compiler bug in ipc_message_macros.h
BUG=288948 Review URL: https://codereview.chromium.org/23455048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228298 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_message_macros.h')
-rw-r--r--ipc/ipc_message_macros.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipc/ipc_message_macros.h b/ipc/ipc_message_macros.h
index cd03680..9f2a6b9 100644
--- a/ipc/ipc_message_macros.h
+++ b/ipc/ipc_message_macros.h
@@ -1010,7 +1010,14 @@
#endif // IPC_IPC_MESSAGE_MACROS_H_
+// The following #ifdef cannot be removed. Although the code is semantically
+// equivalent without the #ifdef, VS2013 contains a bug where it is
+// over-aggressive in optimizing out #includes. Putting the #ifdef is a
+// workaround for this bug. See http://goo.gl/eGt2Fb for more details.
+// This can be removed once VS2013 is fixed.
+#ifdef IPC_MESSAGE_START
// Clean up IPC_MESSAGE_START in this unguarded section so that the
// XXX_messages.h files need not do so themselves. This makes the
// XXX_messages.h files easier to write.
#undef IPC_MESSAGE_START
+#endif \ No newline at end of file