Skip to content

fix compiler warning on __STDC_FORMAT_MACROS redef - #127

Open
NikolausDemmel wants to merge 1 commit into
kazuho:masterfrom
NikolausDemmel:patch-1
Open

fix compiler warning on __STDC_FORMAT_MACROS redef#127
NikolausDemmel wants to merge 1 commit into
kazuho:masterfrom
NikolausDemmel:patch-1

Conversation

@NikolausDemmel

Copy link
Copy Markdown

Fixes #91

Without this, if I include 2 libraries that define this macro, I get warnings like

warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined]

This is on macos 10.15 with AppleClang 11.

Fixes kazuho#91 

Without this, if I include 2 libraries that define this macro, I get warnings like

```
warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined]
```

This is on macos 10.15 with AppleClang 11.
NikolausDemmel added a commit to NikolausDemmel/Pangolin that referenced this pull request May 13, 2020
Without this, if I include 2 libraries that define this macro, I get warnings like

```
warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined]
```

This is on macos 10.15 with AppleClang 11.

See also upstream PR: kazuho/picojson#127
stevenlovegrove pushed a commit to stevenlovegrove/Pangolin that referenced this pull request May 15, 2020
Without this, if I include 2 libraries that define this macro, I get warnings like

```
warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined]
```

This is on macos 10.15 with AppleClang 11.

See also upstream PR: kazuho/picojson#127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning about __STDC_FORMAT_MACROS

1 participant