Skip to content

Commit

Permalink
[v0.96] Fix compilation issue in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Noob committed Apr 9, 2021
1 parent b699fdc commit 8bb65e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/x86/apic.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#ifdef _WIN32
#include <windows.h>
#define NOMINMAX
#include <windows.h>
#elif defined __linux__
#define _GNU_SOURCE
#include <sched.h>
#define _GNU_SOURCE
#include <sched.h>
#elif defined __APPLE__
#define UNUSED(x) (void)(x)
#define UNUSED(x) (void)(x)
#endif

#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions src/x86/cpuid.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#ifdef _WIN32
#define NOMINMAX
#include <windows.h>
#else
#include "../common/udev.h"
Expand Down

0 comments on commit 8bb65e0

Please sign in to comment.