Skip to content

Commit bb74360

Browse files
committed
Fix SMSM compile error on Windows
1 parent d30a9cc commit bb74360

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

smsm/src/Utils/SDK.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#include <algorithm>
23
#include <cmath>
34
#include <cstring>
45
#include <cstdint>
@@ -7,6 +8,7 @@
78
#ifdef _WIN32
89
#define __funcc __thiscall
910
#define ALIGNED(x) __declspec(align(x))
11+
#define strdup _strdup
1012
#else
1113
#define __funcc __attribute__((__cdecl__))
1214
#define ALIGNED(x) __attribute__((aligned(x)))

0 commit comments

Comments
 (0)