Skip to content

Commit 6ad5b71

Browse files
committed
Conditionally define CDECL and FASTCALL on windows
These may already be defined by other includes. Hopefully puts out the windows fire.
1 parent 7dad31d commit 6ad5b71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rt/rust.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
#ifdef __i386__
1010
// 'cdecl' ABI only means anything on i386
1111
#ifdef __WIN32__
12+
#ifndef CDECL
1213
#define CDECL __cdecl
14+
#endif
15+
#ifndef FASTCALL
1316
#define FASTCALL __fastcall
17+
#endif
1418
#else
1519
#define CDECL __attribute__((cdecl))
1620
#define FASTCALL __attribute__((fastcall))

0 commit comments

Comments
 (0)