Skip to content

Commit

Permalink
Add code improvements for SUN OS compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Jul 13, 2015
1 parent d6b46f4 commit 73022b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ AC_CONFIG_AUX_DIR([script])
# Though they look like gcc flags!
AM_INIT_AUTOMAKE([foreign parallel-tests -Wall])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([no])])
# would fail with mingw otherwise
m4_pattern_allow([AM_PROG_AR])

# Checks for programs.
AC_PROG_CXX
AC_LANG([C++])
AM_PROG_AR([])
LT_INIT([dlopen])

# Checks for header files.
Expand Down
8 changes: 6 additions & 2 deletions units.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include <string>
#include <sstream>

#ifdef __sun
#undef SEC
#endif

namespace Sass {
using namespace std;

Expand Down Expand Up @@ -59,9 +63,9 @@ namespace Sass {
extern const double frequency_conversion_factors[2][2];
extern const double resolution_conversion_factors[3][3];

SassUnit string_to_unit(const string&);
enum SassUnit string_to_unit(const string&);
const char* unit_to_string(SassUnit unit);
SassUnitType get_unit_type(SassUnit unit);
enum SassUnitType get_unit_type(SassUnit unit);
// throws incompatibleUnits exceptions
double conversion_factor(const string&, const string&);

Expand Down

0 comments on commit 73022b3

Please sign in to comment.