]> git.sesse.net Git - vlc/commitdiff
compat: mark getpid() as not throwing exceptions in C++
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Sep 2012 16:11:44 +0000 (19:11 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Sep 2012 16:14:32 +0000 (19:14 +0300)
This makes the definition consistent with glibc (NaCl).

include/vlc_fixups.h

index d91e155e501c14212f90f59c456c5faace24d8c5..9d20a2d54b657db16c8c11e8fb859a53dec2f82d 100644 (file)
@@ -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