summary refs log tree commit diff
path: root/pkgs/development/interpreters/pure/new-gcc.patch
blob: ea2cd8450591ab1a5ff9eae2fb95b49ad69e1b7d (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
diff --git a/runtime.cc b/runtime.cc
index 04cbc40..54a0b43 100644
--- a/runtime.cc
+++ b/runtime.cc
@@ -13121,39 +13121,6 @@ unsigned int sleep(unsigned int secs)
 }
 #endif
 
-/* Horrible kludge to get round, trunc and the inverse hyperbolic functions
-   from libmingwex.a (these are in C99, but not in the Windows system
-   libraries, and LLVM doesn't know how to get them either). */
-
-extern "C"
-double __round(double x)
-{
-  return round(x);
-}
-
-extern "C"
-double __trunc(double x)
-{
-  return trunc(x);
-}
-
-extern "C"
-double __asinh(double x)
-{
-  return asinh(x);
-}
-
-extern "C"
-double __acosh(double x)
-{
-  return acosh(x);
-}
-
-extern "C"
-double __atanh(double x)
-{
-  return atanh(x);
-}
 
 /* File type bits. */
 
diff --git a/util.hh b/util.hh
index ae95b79..eab3330 100644
--- a/util.hh
+++ b/util.hh
@@ -58,13 +58,6 @@ char *default_encoding();
 double my_strtod(const char  *nptr, char **endptr);
 char *my_formatd(char *buffer, const char  *format, double d);
 
-/* Windows doesn't have strptime, so we provide a suitable replacement from
-   GNU libc (see strptime.c). */
-
-#ifndef HAVE_STRPTIME
-extern "C"
-char *strptime(const char *s, const char *format, struct tm *tm);
-#endif
 
 /* Windows doesn't have mkstemp, so we provide a suitable replacement. */