Skip to content

Commit 337e30e

Browse files
alyssaisxzyfer
authored andcommitted
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 4599662.
1 parent c6b972e commit 337e30e

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

src/fn_colors.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "sass.hpp"
12
#include <cctype>
23
#include <iomanip>
34
#include "ast.hpp"

src/fn_numbers.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include "sass.hpp"
2+
13
#include <cstdint>
24
#include <cstdlib>
35
#include <cmath>
@@ -8,7 +10,6 @@
810
#include <algorithm>
911

1012
#include "ast.hpp"
11-
#include "sass.hpp"
1213
#include "units.hpp"
1314
#include "fn_utils.hpp"
1415
#include "fn_numbers.hpp"

src/fn_strings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
#include "sass.hpp"
12
#include <cctype>
23
#include "utf8.h"
34
#include "ast.hpp"
4-
#include "sass.hpp"
55
#include "fn_utils.hpp"
66
#include "fn_strings.hpp"
77

src/listize.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef SASS_LISTIZE_H
22
#define SASS_LISTIZE_H
33

4+
#include "sass.hpp"
5+
46
#include <vector>
57
#include <iostream>
68

src/parser.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef SASS_PARSER_H
22
#define SASS_PARSER_H
33

4+
#include "sass.hpp"
5+
46
#include <string>
57
#include <vector>
68

0 commit comments

Comments
 (0)