|
|
d8f06ba |
diff -up chemtool-1.6.12/src-cht/cht-2.5.c.compile chemtool-1.6.12/src-cht/cht-2.5.c
|
|
|
d8f06ba |
--- chemtool-1.6.12/src-cht/cht-2.5.c.compile 2007-11-10 22:12:35.000000000 +0100
|
|
|
d8f06ba |
+++ chemtool-1.6.12/src-cht/cht-2.5.c 2009-08-22 13:49:26.000000000 +0200
|
|
|
5af5e47 |
@@ -121,11 +121,6 @@
|
|
|
5af5e47 |
#define LACK_MEMMOVE
|
|
|
5af5e47 |
#define LACK_MEMCPY
|
|
|
5af5e47 |
|
|
|
5af5e47 |
-#else
|
|
|
5af5e47 |
-
|
|
|
5af5e47 |
-#define LACK_LABS /* Undefine these if your library has these */
|
|
|
5af5e47 |
-#define LACK_MEMMOVE
|
|
|
5af5e47 |
-
|
|
|
5af5e47 |
#endif
|
|
|
5af5e47 |
#endif
|
|
|
5af5e47 |
|
|
|
7dff561 |
@@ -593,13 +588,15 @@ char **argv;
|
|
|
5af5e47 |
|
|
|
5af5e47 |
/* In case your system lacks these... */
|
|
|
5af5e47 |
|
|
|
5af5e47 |
+#ifdef LACK_LABS
|
|
|
5af5e47 |
long my_labs(x)
|
|
|
5af5e47 |
long x;
|
|
|
5af5e47 |
{
|
|
|
5af5e47 |
return((x > 0) ? x : -x);
|
|
|
5af5e47 |
}
|
|
|
5af5e47 |
+#endif /* LACK_LABS */
|
|
|
5af5e47 |
|
|
|
5af5e47 |
-
|
|
|
5af5e47 |
+#ifdef LACK_MEMMOVE
|
|
|
5af5e47 |
#ifdef __STDC__
|
|
|
5af5e47 |
Anyptr my_memmove(Anyptr d, Const Anyptr s, size_t n)
|
|
|
5af5e47 |
#else
|
|
|
7dff561 |
@@ -623,8 +620,9 @@ register int n;
|
|
|
5af5e47 |
}
|
|
|
5af5e47 |
return d;
|
|
|
5af5e47 |
}
|
|
|
5af5e47 |
+#endif /* LACK_MEMMOVE */
|
|
|
5af5e47 |
|
|
|
5af5e47 |
-
|
|
|
5af5e47 |
+#ifdef LACK_MEMCPY
|
|
|
5af5e47 |
#ifdef __STDC__
|
|
|
5af5e47 |
Anyptr my_memcpy(Anyptr d, Const Anyptr s, size_t n)
|
|
|
5af5e47 |
#else
|
|
|
7dff561 |
@@ -638,7 +636,9 @@ register int n;
|
|
|
5af5e47 |
*dd++ = *ss++;
|
|
|
5af5e47 |
return d;
|
|
|
5af5e47 |
}
|
|
|
5af5e47 |
+#endif /* LACK_MEMCPY */
|
|
|
5af5e47 |
|
|
|
5af5e47 |
+#ifdef LACK_MEMCMP
|
|
|
5af5e47 |
#ifdef __STDC__
|
|
|
5af5e47 |
int my_memcmp(Const Anyptr s1, Const Anyptr s2, size_t n)
|
|
|
5af5e47 |
#else
|
|
|
7dff561 |
@@ -654,7 +654,9 @@ register int n;
|
|
|
5af5e47 |
return i;
|
|
|
5af5e47 |
return 0;
|
|
|
5af5e47 |
}
|
|
|
5af5e47 |
+#endif /* LACK_MEMCMP */
|
|
|
5af5e47 |
|
|
|
5af5e47 |
+#ifdef LACK_MEMSET
|
|
|
5af5e47 |
#ifdef __STDC__
|
|
|
5af5e47 |
Anyptr my_memset(Anyptr d, int c, size_t n)
|
|
|
5af5e47 |
#else
|
|
|
7dff561 |
@@ -669,7 +671,7 @@ register int n;
|
|
|
5af5e47 |
*dd++ = c;
|
|
|
5af5e47 |
return d;
|
|
|
5af5e47 |
}
|
|
|
5af5e47 |
-
|
|
|
5af5e47 |
+#endif /* LACK_MEMSET */
|
|
|
5af5e47 |
|
|
|
5af5e47 |
int my_toupper(c)
|
|
|
5af5e47 |
int c;
|