[vlc-commits] compat: mark getpid() as not throwing exceptions in C++
Rémi Denis-Courmont
git at videolan.org
Sat Sep 8 18:14:36 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 8 19:11:44 2012 +0300| [84f5d45571d24c0b9bfde6294ee399e2028b8a32] | committer: Rémi Denis-Courmont
compat: mark getpid() as not throwing exceptions in C++
This makes the definition consistent with glibc (NaCl).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=84f5d45571d24c0b9bfde6294ee399e2028b8a32
---
include/vlc_fixups.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index d91e155..9d20a2d 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -71,7 +71,10 @@ typedef struct
#endif
#ifdef __cplusplus
+# define VLC_NOTHROW throw ()
extern "C" {
+#else
+# define VLC_NOTHROW
#endif
/* stdio.h */
@@ -179,7 +182,7 @@ struct tm *localtime_r (const time_t *, struct tm *);
/* unistd.h */
#ifndef HAVE_GETPID
-pid_t getpid (void);
+pid_t getpid (void) VLC_NOTHROW;
#endif
#ifndef HAVE_FSYNC
More information about the vlc-commits
mailing list