Commit 84f5d455 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

compat: mark getpid() as not throwing exceptions in C++

This makes the definition consistent with glibc (NaCl).
parent 294f9cc8
...@@ -71,7 +71,10 @@ typedef struct ...@@ -71,7 +71,10 @@ typedef struct
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
# define VLC_NOTHROW throw ()
extern "C" { extern "C" {
#else
# define VLC_NOTHROW
#endif #endif
/* stdio.h */ /* stdio.h */
...@@ -179,7 +182,7 @@ struct tm *localtime_r (const time_t *, struct tm *); ...@@ -179,7 +182,7 @@ struct tm *localtime_r (const time_t *, struct tm *);
/* unistd.h */ /* unistd.h */
#ifndef HAVE_GETPID #ifndef HAVE_GETPID
pid_t getpid (void); pid_t getpid (void) VLC_NOTHROW;
#endif #endif
#ifndef HAVE_FSYNC #ifndef HAVE_FSYNC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment