summaryrefslogtreecommitdiffstats
path: root/base/compiler_specific.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-18 17:42:27 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-18 17:42:27 +0000
commit5a8d4ce29f346d9fe2435d17c375e2ddb6fe6123 (patch)
tree99c554aab7548aac08323e96b97b261c2fe6e714 /base/compiler_specific.h
parentb8b2dbebdf0d28db0f162eadb2c3838ac7b8a088 (diff)
downloadchromium_src-5a8d4ce29f346d9fe2435d17c375e2ddb6fe6123.zip
chromium_src-5a8d4ce29f346d9fe2435d17c375e2ddb6fe6123.tar.gz
chromium_src-5a8d4ce29f346d9fe2435d17c375e2ddb6fe6123.tar.bz2
Move DumpProcessWithoutCrash to base, so we can use it from net and content
BUG=none R=mark@chromium.org TBR=wez@chromium.org Review URL: https://codereview.chromium.org/99523009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241589 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/compiler_specific.h')
-rw-r--r--base/compiler_specific.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/base/compiler_specific.h b/base/compiler_specific.h
index dc4b233..09b4e70 100644
--- a/base/compiler_specific.h
+++ b/base/compiler_specific.h
@@ -211,4 +211,13 @@ void __msan_unpoison(const void *p, unsigned long s);
#define MSAN_UNPOISON(p, s)
#endif // MEMORY_SANITIZER
+// Macro useful for writing cross-platform function pointers.
+#if !defined(CDECL)
+#if defined(OS_WIN)
+#define CDECL __cdecl
+#else // defined(OS_WIN)
+#define CDECL
+#endif // defined(OS_WIN)
+#endif // !defined(CDECL)
+
#endif // BASE_COMPILER_SPECIFIC_H_