Skip to content
Browse files

Évite quelques warnings

Inclusion des headers systèmes en cas de besoin
plutôt que redéfinir localement les fonctions/symbols
  • Loading branch information...
1 parent a469f2c commit a9ac7d303826df2238e56edb073750afdb373b10 @vdanjean committed Oct 4, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −3 contrib/libnum/bignum/c/bz.c
  2. +2 −1 contrib/libnum/bignum/c/testKerN.c
View
5 contrib/libnum/bignum/c/bz.c
@@ -12,6 +12,8 @@
*/
+#include <stdlib.h>
+#include <string.h>
#include "BigZ.h"
@@ -24,7 +26,6 @@
#include <values.h>
*/
-#define NULL 0
#define max(a,b) (a<b ? b : a)
#define abs(x) (x>=0 ? x : -(x))
#define M_LN2 0.69314718055994530942
@@ -42,8 +43,6 @@
c >= 'A' && c <= 'F' ? c - 'A' + 10:\
0)
-extern char *malloc();
-
/*** copyright ***/
static char copyright[]="@(#)bz.c: copyright Digital Equipment Corporation & INRIA 1988, 1989\n";
View
3 contrib/libnum/bignum/c/testKerN.c
@@ -10,6 +10,8 @@
#define BNNMACROS_OFF 1
+#include <stdio.h>
+#include <stdlib.h>
#include "BigNum.h"
/* old types of Bn */
@@ -26,7 +28,6 @@ struct BigNumHeader /* The header of a BigNum */
/*
* Creation and access to type and length fields.
*/
-extern char *malloc();
/* Allocates a BigNum structure and returns a pointer to it */
BigNum BnAlloc(size) int size; {
register BigNum n;

0 comments on commit a9ac7d3

Please sign in to comment.
Something went wrong with that request. Please try again.