Skip to content

Commit

Permalink
Workaround '__stdcall__ ignored for this target' clang warning on Cyg…
Browse files Browse the repository at this point in the history
…win64

(a cherry-pick of commit 0e7e987 from 'master')

Issue #587 (bdwgc).

* include/gc_config_macros.h [__clang__ && __CYGWIN__ && __LP64__
&& GC_THREADS] (__stdcall__): Define as a macro to empty; add comment.
  • Loading branch information
ivmai committed Oct 22, 2024
1 parent deb2d2d commit e7f6ef3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/gc_config_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@
# define _REENTRANT 1
#endif

#if defined(__clang__) && defined(__CYGWIN__) && defined(GC_THREADS) \
&& defined(__LP64__)
/* Workaround "__stdcall__ ignored for this target" clang warning. */
/* Note: __stdcall is defined implicitly based on __stdcall__. */
# define __stdcall__ /* empty */
#endif

#define __GC
#if !defined(_WIN32_WCE) || defined(__GNUC__)
# include <stddef.h>
Expand Down

0 comments on commit e7f6ef3

Please sign in to comment.