Skip to content
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

Define _GNU_SOURCE in Linux #22

Merged
merged 1 commit into from
Jun 4, 2019
Merged

Define _GNU_SOURCE in Linux #22

merged 1 commit into from
Jun 4, 2019

Conversation

dracc
Copy link
Contributor

@dracc dracc commented Apr 27, 2019

Silences an asprintf() warning.

@@ -236,6 +236,7 @@

#if defined( __LINUX__ )
#define _LARGEFILE64_SOURCE
#define _GNU_SOURCE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is really Linux specific. It should also be necessary on MSYS2 etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, now its treated as GCC specific instead. 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit title still bad

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit title has since been changed. 👍

@dracc dracc force-pushed the gnusource branch 2 times, most recently from 8c14a21 to b8526f6 Compare April 27, 2019 16:23
Silences an asprintf() warning.
@JayFoxRox JayFoxRox merged commit 2da27ca into XboxDev:master Jun 4, 2019
@JayFoxRox
Copy link
Member

I think I'd have preferred -D_GNU_SOURCE=1 (to avoid accidental define-after-include), but this is also fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants