Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Ensure sass.hpp is included before system headers
Browse files Browse the repository at this point in the history
Without this, system headers on Solaris will export the SEC macro, which
clashes with the SEC constant defined in src/units.hpp.

See 4599662.
  • Loading branch information
alyssais authored and xzyfer committed Feb 1, 2019
1 parent c6b972e commit 337e30e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/fn_colors.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "sass.hpp"
#include <cctype>
#include <iomanip>
#include "ast.hpp"
Expand Down
3 changes: 2 additions & 1 deletion src/fn_numbers.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "sass.hpp"

#include <cstdint>
#include <cstdlib>
#include <cmath>
Expand All @@ -8,7 +10,6 @@
#include <algorithm>

#include "ast.hpp"
#include "sass.hpp"
#include "units.hpp"
#include "fn_utils.hpp"
#include "fn_numbers.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/fn_strings.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "sass.hpp"
#include <cctype>
#include "utf8.h"
#include "ast.hpp"
#include "sass.hpp"
#include "fn_utils.hpp"
#include "fn_strings.hpp"

Expand Down
2 changes: 2 additions & 0 deletions src/listize.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef SASS_LISTIZE_H
#define SASS_LISTIZE_H

#include "sass.hpp"

#include <vector>
#include <iostream>

Expand Down
2 changes: 2 additions & 0 deletions src/parser.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef SASS_PARSER_H
#define SASS_PARSER_H

#include "sass.hpp"

#include <string>
#include <vector>

Expand Down

0 comments on commit 337e30e

Please sign in to comment.