summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2021-11-15 19:25:41 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2021-11-15 19:25:41 +0000
commite6b6fa93aa1ac92ee883079fe232ef7362643960 (patch)
tree8c3209848c5a903dee9c99562904bbe1c678c447
parent47d39ed3d8d3265b3be6ca2b5973acd0e715c16a (diff)
downloadswig-e6b6fa93aa1ac92ee883079fe232ef7362643960.tar.gz
Fix guile examples for C11 and later conformance
-rw-r--r--Examples/guile/matrix/example.i6
1 files changed, 5 insertions, 1 deletions
diff --git a/Examples/guile/matrix/example.i b/Examples/guile/matrix/example.i
index 3f801dcdf..6f8fa8859 100644
--- a/Examples/guile/matrix/example.i
+++ b/Examples/guile/matrix/example.i
@@ -14,4 +14,8 @@
%include math.i
-extern double drand48();
+%{
+/* Add drand48 declaration as it is posix only and is not in stdlib.h when using strict c99 and later */
+extern double drand48(void);
+%}
+extern double drand48(void);