Fixed _MSC_VER define

This commit is contained in:
Mikhail Grigorev 2022-10-07 15:53:45 +05:00
parent 240a5eaf9c
commit 3f01476487

8
ggml.c
View File

@ -2,16 +2,14 @@
#if defined(_MSC_VER)
#include <malloc.h>
#include <windows.h>
#include <sys/timeb.h>
#define _USE_MATH_DEFINES
#else
#include <alloca.h>
#endif
#include <assert.h>
#include <time.h>
#if defined(_MSC_VER)
#include <windows.h>
#include <sys/timeb.h>
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include <stdlib.h>
#include <string.h>