Skip to content
Snippets Groups Projects
Commit 662ae9bb authored by Ralph Giles's avatar Ralph Giles
Browse files

Include process.h for _getpid on windows.

Previously the test programmes happened to link because _getpid
returns an int, which is the default prototype. Instead, include
the appropriate header to supply a real declaration, fixing the
associated warning.

I moved the getpid->_getpid define to the site of the header
inclusion to make clear what's going on, rather than have it
floating in win32/config.h.
parent 3b60e81d
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,9 @@
#include <time.h>
#if (!defined WIN32 && !defined _WIN32) || defined(__MINGW32__)
#include <unistd.h>
#else
#include <process.h>
#define getpid _getpid
#endif
#include "opus.h"
#include "test_opus_common.h"
......
......@@ -38,6 +38,9 @@
#include <time.h>
#if (!defined WIN32 && !defined _WIN32) || defined(__MINGW32__)
#include <unistd.h>
#else
#include <process.h>
#define getpid _getpid
#endif
#include "opus_multistream.h"
#include "opus.h"
......
......@@ -4,7 +4,6 @@
#define CELT_BUILD 1
#define inline __inline
#define getpid _getpid
#define USE_ALLOCA 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment