tjutil.c: Fix compiler warning with Visual Studio
Apparently windows.h includes stdlib.h, which defines the max() and min() macros, so we need to ensure that tjutil.h is included after that.
This commit is contained in:
4
tjutil.c
4
tjutil.c
@@ -26,11 +26,10 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "tjutil.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#include <windows.h>
|
||||
#include "tjutil.h"
|
||||
|
||||
static double getFreq(void)
|
||||
{
|
||||
@@ -58,6 +57,7 @@ double getTime(void)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sys/time.h>
|
||||
#include "tjutil.h"
|
||||
|
||||
double getTime(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user