[project @ 1998-04-14 09:29:26 by simonm]
authorsimonm <unknown>
Tue, 14 Apr 1998 09:29:26 +0000 (09:29 +0000)
committersimonm <unknown>
Tue, 14 Apr 1998 09:29:26 +0000 (09:29 +0000)
add comment about why NON_POSIX_SOURCE is required.

ghc/tests/codeGen/should_run/cg035.hs

index 1b4c930..7b7b7d0 100644 (file)
@@ -1,5 +1,9 @@
 {-# OPTIONS -optc-DNON_POSIX_SOURCE #-}
 
+-- The above option is required because 'erf' isn't a POSIX function, and we
+-- need a prototype for it in order to compile the following code correctly.
+-- Defining NON_POSIX_SOURCE tells the RTS not to define _POSIX_SOURCE.
+
 module Main (main) where
 
 import IOExts ( unsafePerformIO )