Skip to content
Snippets Groups Projects
Commit 89e52b02 authored by Ashley Yakeley's avatar Ashley Yakeley
Browse files

get building on Windows

Ignore-this: 7f61aa6f76736ff855aa665991f2a2c6

darcs-hash:20090417075814-ca2d0-d459b191878a61b0ac33b05230ecba1d94f93e69
parent 1e426fff
No related branches found
No related tags found
No related merge requests found
......@@ -10,9 +10,10 @@ import System.Directory
import System.Info
main :: IO ()
main = if os == "windows"
then defaultMain
else let hooks = autoconfUserHooks { runTests = runTestScript } in defaultMainWithHooks hooks
main = case os of
"windows" -> defaultMain
"mingw32" -> defaultMain
_ -> let hooks = autoconfUserHooks { runTests = runTestScript } in defaultMainWithHooks hooks
withCurrentDirectory :: FilePath -> IO a -> IO a
withCurrentDirectory path f = do
......
......@@ -2,6 +2,7 @@
#define __HSTIME_H__
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)
#define HAVE_TIME_H 1
#else
#include "HsTimeConfig.h"
......@@ -11,11 +12,11 @@
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#endif
#if HAVE_TIME_H
#include <time.h>
#endif
#endif
long int get_current_timezone_seconds (time_t,int* pdst,char const* * pname);
......
......@@ -65,8 +65,12 @@ library
Data.Time.LocalTime.LocalTime,
Data.Time.Format.Parse
include-dirs: include
install-includes:
HsTime.h
HsTimeConfig.h
if os(windows)
install-includes:
HsTime.h
else
install-includes:
HsTime.h
HsTimeConfig.h
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment