#endif
#ifdef __cplusplus
+# define VLC_NOTHROW throw ()
extern "C" {
+#else
+# define VLC_NOTHROW
#endif
/* stdio.h */
char *strdup (const char *);
#endif
-#ifndef HAVE_STRNCASECMP
-int strncasecmp (const char *, const char *, size_t);
-#endif
-
#ifndef HAVE_STRVERSCMP
int strverscmp (const char *, const char *);
#endif
/* unistd.h */
#ifndef HAVE_GETPID
-pid_t getpid (void);
+pid_t getpid (void) VLC_NOTHROW;
#endif
#ifndef HAVE_FSYNC
/* locale.h */
#ifndef HAVE_USELOCALE
+#define LC_ALL_MASK 0
#define LC_NUMERIC_MASK 0
#define LC_MESSAGES_MASK 0
+#define LC_GLOBAL_LOCALE ((locale_t)(uintptr_t)1)
typedef void *locale_t;
static inline locale_t uselocale(locale_t loc)
{
#define N_(str) gettext_noop (str)
#define gettext_noop(str) (str)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef HAVE_SWAB
void swab (const void *, void *, ssize_t);
#endif
long nrand48 (unsigned short subi[3]);
#endif
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#ifdef __OS2__
# undef HAVE_FORK /* Implementation of fork() is imperfect on OS/2 */
+
+struct addrinfo
+{
+ int ai_flags;
+ int ai_family;
+ int ai_socktype;
+ int ai_protocol;
+ size_t ai_addrlen;
+ struct sockaddr *ai_addr;
+ char *ai_canonname;
+ struct addrinfo *ai_next;
+};
+#endif
+
+/* math.h */
+
+#ifndef HAVE_NANF
+#define nanf(tagp) NAN
+#endif
+
+#ifdef _WIN32
+FILE *vlc_win32_tmpfile(void);
#endif
#endif /* !LIBVLC_FIXUPS_H */