Allow use of opkg internals by libopkg users. Not intended to be permanent.
[oweals/opkg-lede.git] / libopkg / includes.h
index 5a67001ab4d2054326dc5c521cf5dc673241307b..cac9a41207d636f1885c60954e3d1963ba9d204e 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef INCLUDES_H
 #define INCLUDES_H
 
+#include "config.h"
 #include <stdio.h>
 
 #if STDC_HEADERS
 #endif
 
 #if HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-#  include <memory.h>
-# endif
-/* XXX: What's the right way to pick up GNU's strndup declaration? */
-# if __GNUC__
-#   define __USE_GNU 1
-# endif
 # include <string.h>
-# undef __USE_GNU
 #endif
 
 #if HAVE_STRINGS_H