mirror of
https://github.com/xiph/opus.git
synced 2025-05-16 16:38:30 +00:00
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.
This commit is contained in:
parent
3b60e81d79
commit
662ae9bb18
3 changed files with 6 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue