Explorar o código

libdpkg: Always include <stddef.h>

We need the definitions from the header, so conditionally including it
will only cause problems, we are also unconditionally including it in
other parts of the code, so it's safe to assume it's always available.
Guillem Jover %!s(int64=16) %!d(string=hai) anos
pai
achega
3516d105a4
Modificáronse 2 ficheiros con 0 adicións e 4 borrados
  1. 0 2
      lib/dpkg/dpkg.h
  2. 0 2
      lib/dpkg/path.h

+ 0 - 2
lib/dpkg/dpkg.h

@@ -28,9 +28,7 @@
 #include <sys/types.h>
 
 #include <setjmp.h>
-#ifdef HAVE_STDDEF_H
 #include <stddef.h>
-#endif
 #include <stdarg.h>
 #include <stdio.h>
 

+ 0 - 2
lib/dpkg/path.h

@@ -21,9 +21,7 @@
 #ifndef LIBDPKG_PATH_H
 #define LIBDPKG_PATH_H
 
-#ifdef HAVE_STDDEF_H
 #include <stddef.h>
-#endif
 
 #include <dpkg/macros.h>