Commit e9971023 by Aaron Leung

Merge pull request #50 from litek/master

Windows support - fixes issue #49
parents de3c1f75 2317ec6b
#ifdef _WIN32
#include <direct.h>
#define getcwd _getcwd
#else
#include <unistd.h>
#endif
#include <cstring> #include <cstring>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <unistd.h>
#include "context.hpp" #include "context.hpp"
#include "constants.hpp" #include "constants.hpp"
#include "color_names.hpp" #include "color_names.hpp"
......
#ifdef _WIN32
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif
#include <cstdio> #include <cstdio>
#include <cstring> #include <cstring>
#include "document.hpp" #include "document.hpp"
......
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <cstdlib> #include <cstdlib>
#include <unistd.h>
#include <iostream> #include <iostream>
#include "document.hpp" #include "document.hpp"
#include "eval_apply.hpp" #include "eval_apply.hpp"
......
#if _MSC_VER >= 1600
#include <unordered_map>
#else
#include <tr1/unordered_map>
#endif
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <tr1/unordered_map>
#include <map> #include <map>
#include <algorithm> #include <algorithm>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment