21 Dec 01:34
How to use #ifdef WIN32
From: Jim Burton <jim <at> sdf-eu.org>
Subject: How to use #ifdef WIN32
Newsgroups: gmane.comp.lang.haskell.glasgow.user
Date: 2007-12-21 00:37:15 GMT
Subject: How to use #ifdef WIN32
Newsgroups: gmane.comp.lang.haskell.glasgow.user
Date: 2007-12-21 00:37:15 GMT
I want to switch code on the OS but this always goes through to the #else (on
windows or elsewhere):
{-# OPTIONS -cpp #-}
#ifdef WIN32
main = putStrLn "hello windows"
#else
main = putStrLn "hello something else"
#endif
Does this depend on a Makefile setting WIN32, or should there be something
predefined?
Thanks,
--
--
View this message in context: http://www.nabble.com/How-to-use--ifdef-WIN32-tp14448173p14448173.html
Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.
Duncan
RSS Feed