From 337e30ea8ceeddad78f80db0468961d92ced0ec4 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 14 Jan 2019 17:35:01 +0000 Subject: [PATCH] Ensure sass.hpp is included before system headers Without this, system headers on Solaris will export the SEC macro, which clashes with the SEC constant defined in src/units.hpp. See 4599662efef76d06bfe327148418c773ed5bc8ba. --- src/fn_colors.cpp | 1 + src/fn_numbers.cpp | 3 ++- src/fn_strings.cpp | 2 +- src/listize.hpp | 2 ++ src/parser.hpp | 2 ++ 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/fn_colors.cpp b/src/fn_colors.cpp index f074528dc..43aa3f9ad 100644 --- a/src/fn_colors.cpp +++ b/src/fn_colors.cpp @@ -1,3 +1,4 @@ +#include "sass.hpp" #include #include #include "ast.hpp" diff --git a/src/fn_numbers.cpp b/src/fn_numbers.cpp index e4bec9936..136226f1e 100644 --- a/src/fn_numbers.cpp +++ b/src/fn_numbers.cpp @@ -1,3 +1,5 @@ +#include "sass.hpp" + #include #include #include @@ -8,7 +10,6 @@ #include #include "ast.hpp" -#include "sass.hpp" #include "units.hpp" #include "fn_utils.hpp" #include "fn_numbers.hpp" diff --git a/src/fn_strings.cpp b/src/fn_strings.cpp index 1f33c343d..8b6ac0e96 100644 --- a/src/fn_strings.cpp +++ b/src/fn_strings.cpp @@ -1,7 +1,7 @@ +#include "sass.hpp" #include #include "utf8.h" #include "ast.hpp" -#include "sass.hpp" #include "fn_utils.hpp" #include "fn_strings.hpp" diff --git a/src/listize.hpp b/src/listize.hpp index 8fa148816..a0f6a96eb 100644 --- a/src/listize.hpp +++ b/src/listize.hpp @@ -1,6 +1,8 @@ #ifndef SASS_LISTIZE_H #define SASS_LISTIZE_H +#include "sass.hpp" + #include #include diff --git a/src/parser.hpp b/src/parser.hpp index 7ee515b75..536cbaa51 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -1,6 +1,8 @@ #ifndef SASS_PARSER_H #define SASS_PARSER_H +#include "sass.hpp" + #include #include