-
Notifications
You must be signed in to change notification settings - Fork 8
Make Windows (MinGW G++) compatible #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
26c9def
b1c0695
5022813
d2e6a3e
af17444
a5d7e80
04c4c6e
f45c21c
5d62214
d0b0c75
3e06ec4
5ffbf8d
053a0cf
f5264f9
817619c
e969af6
3636f69
f9d632b
ad2cd86
dae871c
a2c4de5
cc5cab8
7ddaca5
fcceb73
1319d89
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,11 @@ | |
| #define GRIDKIT_VERSION_MAJOR "@GridKit_VERSION_MAJOR@" | ||
| #define GRIDKIT_VERSION_MINOR "@GridKit_VERSION_MINOR@" | ||
| #define GRIDKIT_VERSION_PATCH "@GridKit_VERSION_PATCH@" | ||
|
|
||
| #if defined(__MINGW32__) || defined(__clang__) || defined(__GNUC__) | ||
| #define FORCE_INLINE __attribute__((always_inline)) inline | ||
| #elif defined(_MSC_VER) | ||
| #define FORCE_INLINE [[msvc::forceinline]] inline | ||
| #else | ||
| #define FORCE_INLINE __attribute__((always_inline)) inline | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you used the standard syntax for attributes, such as
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. at least, in my testing w/ clang, clang ignores the |
||
| #endif | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specify it's mingw g++ only or list caveats with msvc. also consider testing llvm on windows as well (uncommon, but would allow enzyme to work, maybe).