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
#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
......
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