[Issue 24094] importC __declspec issues

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 22 02:29:13 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24094

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
I tried the following:

------------ test.c -----------
__declspec(allocator) __declspec(restrict)
 void* __cdecl _calloc_base(int, int);
-------------------------------

and it compiled without error. Can you perhaps try your code with the latest
compiler? I note that __declspec(restrict) was a newer addition to dmd.

--


More information about the Digitalmars-d-bugs mailing list