From d84d11160e82a7cbfd214e24ec650274d7e5e8d9 Mon Sep 17 00:00:00 2001 From: "andrew@webrtc.org" Date: Fri, 31 Aug 2012 23:17:53 +0000 Subject: [PATCH] Add WEBRTC_POSIX and remove unneeded defines. Review URL: https://webrtc-codereview.appspot.com/768007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2695 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/typedefs.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/typedefs.h b/src/typedefs.h index b21d9c756..d6d401553 100644 --- a/src/typedefs.h +++ b/src/typedefs.h @@ -9,17 +9,22 @@ */ // This file contains platform-specific typedefs and defines. +// Much of it is derived from Chromium's build/build_config.h. #ifndef WEBRTC_TYPEDEFS_H_ #define WEBRTC_TYPEDEFS_H_ // Reserved words definitions -// TODO(andrew): Look at removing these. -#define WEBRTC_EXTERN extern +// TODO(andrew): Remove this. #define G_CONST const -#define WEBRTC_INLINE extern __inline -// Derived from Chromium's build/build_config.h +// For access to standard POSIXish features, use WEBRTC_POSIX instead of a +// more specific macro. +#if defined(WEBRTC_MAC) || defined(WEBRTC_LINUX) || \ + defined(WEBRTC_ANDROID) +#define WEBRTC_POSIX +#endif + // Processor architecture detection. For more info on what's defined, see: // http://msdn.microsoft.com/en-us/library/b0084kay.aspx // http://www.agner.org/optimize/calling_conventions.pdf