Index: base/compiler_specific.h |
diff --git a/base/compiler_specific.h b/base/compiler_specific.h |
index dc4b23349873c8ae81e0312badd109bf2416f222..09b4e7033269c7e9279c37b9c267a5560e7ca06c 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_ |