Browse Source

my assert.h takes extra pains to be certain to _re-include_
itself if you include it twice. this is dumb, but hey.


svn:r2653

Roger Dingledine 20 years ago
parent
commit
e761cc9750
3 changed files with 2 additions and 2 deletions
  1. 1 0
      src/common/compat.c
  2. 1 1
      src/common/container.c
  3. 0 1
      src/common/util.h

+ 1 - 0
src/common/compat.c

@@ -63,6 +63,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <assert.h>
 
 #include "compat.h"
 #include "log.h"

+ 1 - 1
src/common/container.c

@@ -13,7 +13,7 @@
 #endif
 #include <stdlib.h>
 #include <string.h>
-
+#include <assert.h>
 
 /* =====
  * smartlist_t: a simple resizeable array abstraction.

+ 0 - 1
src/common/util.h

@@ -13,7 +13,6 @@
 #include "orconfig.h"
 #include "torint.h"
 #include <stdio.h>
-#include <assert.h>
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif