Skip to content

Commit

Permalink
Merge pull request sass#1435 from saper/mingwrt
Browse files Browse the repository at this point in the history
Cross compile with MinGW32 runtime
  • Loading branch information
xzyfer committed Aug 11, 2015
2 parents 354801c + 12954b6 commit 1ebed7a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 28 deletions.
5 changes: 5 additions & 0 deletions src/file.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#ifdef _WIN32
#ifdef __MINGW32__
#ifndef off64_t
#define off64_t _off64_t /* Workaround for http://sourceforge.net/p/mingw/bugs/2024/ */
#endif
#endif
#include <direct.h>
#define getcwd _getcwd
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
Expand Down
10 changes: 2 additions & 8 deletions src/sass_context.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#ifdef _WIN32
#include <io.h>
#define LFEED "\n"
#else
#include <unistd.h>
#define LFEED "\n"
#endif

#include "sass.h"

#include <cstring>
Expand All @@ -23,6 +15,8 @@
#include "ast_fwd_decl.hpp"
#include "error_handling.hpp"

#define LFEED "\n"

extern "C" {
using namespace Sass;

Expand Down
6 changes: 0 additions & 6 deletions src/sass_functions.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif

#include <cstring>
#include "util.hpp"
#include "context.hpp"
Expand Down
9 changes: 1 addition & 8 deletions src/sass_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#ifdef _WIN32
#include <io.h>
#define LFEED "\n"
#else
#include <unistd.h>
#define LFEED "\n"
#endif

#include "sass.h"

#include <string>
Expand All @@ -20,6 +12,7 @@
#include "error_handling.hpp"
#include "sass_interface.h"

#define LFEED "\n"

extern "C" {

Expand Down
6 changes: 0 additions & 6 deletions src/sass_values.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif

#include <cstdlib>
#include <cstring>
#include "util.hpp"
Expand Down

0 comments on commit 1ebed7a

Please sign in to comment.