aboutsummaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-04-26 20:33:15 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-04-26 20:36:06 -0700
commit26fefa040a7046bbe00e3caf2597f33e65af5986 (patch)
tree0a53c1edc381fa7032efc917b643e40c94c4cf84 /pandoc.cabal
parentfdd5f26d1412540dba58693e5065541eb37420e4 (diff)
downloadpandoc-26fefa040a7046bbe00e3caf2597f33e65af5986.tar.gz
PDF: On Windows, create temdir in working directory.
Reason: the path to the system temp directory may contain tildes, which causes problems in LaTeX when the username is more than eight characters. Closes #777.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal2
1 files changed, 2 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index a4af94321..25461e55f 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -358,6 +358,8 @@ Executable pandoc
Ghc-Prof-Options: -auto-all -caf-all -rtsopts
else
Ghc-Prof-Options: -auto-all -caf-all
+ if os(windows)
+ Cpp-options: -D_WINDOWS
Default-Language: Haskell98
Default-Extensions: CPP
Other-Extensions: PatternGuards, OverloadedStrings,