Skip to content

Commit 3a5add3

Browse files
committed
GCC 6: #include fixes
1 parent 9e88100 commit 3a5add3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

gcc-python.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ int plugin_is_GPL_compatible;
3535

3636
#if 1
3737
/* Ideally we wouldn't have these includes here: */
38+
#if (GCC_VERSION >= 6000)
39+
#include "cp/cp-tree.h" /* for cp_expr */
40+
#endif
3841
#include "cp/name-lookup.h" /* for global_namespace */
3942
#include "tree.h"
4043
#include "function.h"

print-gcc-version.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
<http://www.gnu.org/licenses/>.
1818
*/
1919

20+
#include "config.h"
21+
#include "system.h"
22+
#include "coretypes.h"
2023
#include "plugin.h"
24+
#include <stdio.h>
2125

2226
int main(int argc, const char *argv[])
2327
{

0 commit comments

Comments
 (0)