Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5a662d4

Browse files
WalterBrightdlang-bot
authored andcommittedMar 25, 2022
fix Issue 22880 - importC: support __restrict__ __signed__ __asm__
1 parent 69ca60d commit 5a662d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/importc.h

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
* ImportC assigns no semantics to `restrict`, so just ignore the keyword.
2020
*/
2121
#define __restrict
22+
#define __restrict__
23+
24+
/**********************
25+
* Some old pre-Ansi headers use these
26+
*/
27+
#define __signed__ signed
28+
#define __asm__ asm
2229

2330
/********************
2431
* This is a Microsoft C function calling convention not supported by ImportC,

0 commit comments

Comments
 (0)
Please sign in to comment.