Bill Allombert on Thu, 12 Sep 2002 10:25:36 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

pari fails to build on OSF1/cc


Hello PARI dev,

OSF1/cc cannot compile current PARI

The preprocessor do not like #ifdef not at the start of the line.
    #ifdef _WIN32
is wrong 
but
#    ifdef _WIN32
is OK.
Here a patch

Cheers,
Bill.

Index: src/gp/gp.c
===================================================================
RCS file: /home/megrez/cvsroot/pari/src/gp/gp.c,v
retrieving revision 1.144
diff -u -r1.144 gp.c
--- src/gp/gp.c	2002/09/11 18:50:01	1.144
+++ src/gp/gp.c	2002/09/12 08:06:55
@@ -2438,9 +2438,9 @@
 
     if (! read_line(&F, NULL))
     {
-    #ifdef _WIN32
+#ifdef _WIN32
       Sleep(10); if (win32ctrlc) dowin32ctrlc();
-    #endif
+#endif
       if (popinfile()) gp_quit();
       if (ismain) continue;
       pop_buffer(); return z;