
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.
22 lines
543 B
C
22 lines
543 B
C
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
#define CELT_BUILD 1
|
|
|
|
#define inline __inline
|
|
|
|
#define USE_ALLOCA 1
|
|
|
|
/* Comment out the next line for floating-point code */
|
|
/*#define FIXED_POINT 1 */
|
|
|
|
#define OPUS_BUILD 1
|
|
|
|
/* Get rid of the CELT VS compile warnings */
|
|
#if 1
|
|
#pragma warning(disable : 4996)/* This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. */
|
|
#endif
|
|
|
|
#include "version.h"
|
|
|
|
#endif CONFIG_H
|