aboutsummaryrefslogtreecommitdiff
path: root/biology/nab/files/patch-ag
blob: d902077dd59d6abe050bfede9cb068c2b0acc688 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
*** src/database.c.orig	Tue Apr 21 12:17:17 1998
--- src/database.c	Tue Mar  9 09:09:06 1999
***************
*** 73,78 ****
--- 73,85 ----
  
  #include        "database.h"
  
+ #if (defined(__unix__) || defined(unix)) && !defined(USG)
+ #include <sys/param.h>
+ #endif
+ 
+ #if defined(BSD)
+ #include <math.h>
+ #endif
  
  #ifndef	TRUE
  #define	TRUE	1
***************
*** 985,991 ****
--- 992,1002 ----
  
      sDBRemoveLeadingSpaces( sLine );
      sDBRemoveFirstString( sLine, sHead );
+ #if defined(linux) || defined(BSD)
+     sscanf( sHead, "%lg", dPDbl );
+ #else
      sscanf( sHead, "%lG", dPDbl );
+ #endif
  
  }