Procházet zdrojové kódy

* Undeffed calloc/realloc so that we may use that instead of my_

svn: 1639
Bryan Drewery před 21 roky
rodič
revize
220e06f1f3
2 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 2 1
      src/compat/memutil.c
  2. 2 0
      src/compat/memutil.h

+ 2 - 1
src/compat/memutil.c

@@ -1,7 +1,8 @@
-#include <stdlib.h>
 #include <string.h>
 #include <string.h>
 #include "memcpy.h"
 #include "memcpy.h"
 #include "src/main.h"
 #include "src/main.h"
+#include <stdlib.h>
+
 
 
 void 
 void 
 str_redup(char **str, const char *newstr)
 str_redup(char **str, const char *newstr)

+ 2 - 0
src/compat/memutil.h

@@ -5,6 +5,8 @@
 
 
 #undef str_redup
 #undef str_redup
 #undef strdup
 #undef strdup
+#undef calloc
+#undef realloc
 
 
 void str_redup(char **, const char *);
 void str_redup(char **, const char *);
 char * strdup(const char *);
 char * strdup(const char *);