-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We need to ensure that libsigrokdecode.h is always the first #include, otherwise some versions of Python will cause all kinds of compiler warnings like these: CC device.o In file included from /usr/include/python3.2mu/Python.h:8:0, from [...]/include/libsigrokdecode/libsigrokdecode.h:25, from sigrok-cli.h:26, from device.c:23: /usr/include/python3.2mu/pyconfig.h:1182:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] #define _POSIX_C_SOURCE 200112L ^ In file included from /usr/include/limits.h:26:0, from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:168, from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/syslimits.h:7, from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:34, from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:11, from /usr/include/glib-2.0/glib/gtypes.h:34, from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from device.c:21: /usr/include/features.h:231:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^ Since sigrok-cli.h already #includes libsigrok.h and libsigrokdecode.h, just ensure that the latter is always the first #include by _only_ including it in sigrok-cli.h and nowhere else.
- Loading branch information
1 parent
3036488
commit 20fb52e
Showing
9 changed files
with
10 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters