Don't check for C89 headers.
authorGuy Harris <guy@alum.mit.edu>
Sat, 14 Feb 2015 08:04:36 +0000 (00:04 -0800)
committerGuy Harris <guy@alum.mit.edu>
Sat, 14 Feb 2015 09:10:56 +0000 (09:10 +0000)
1988 called, they want their lack of a C standard back.  We don't need
to check whether we have stdarg.h, stddef.h, stdlib.h, or string.h, as
they're specified by C89 and I don't think there are any platforms we
care about that don't have a C89 environment in which we could be built.

Change-Id: I447551181284fab7722354b62774625ed8ee94bc
Reviewed-on: https://code.wireshark.org/review/7110
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
ConfigureChecks.cmake
asn1/kerberos/packet-kerberos-template.c
cmakeconfig.h.in
config.h.win32
configure.ac
epan/dissectors/packet-aodv.c
epan/dissectors/packet-kerberos.c
epan/packet.c
epan/proto.h

index a743425191f11d9dea906ccb6e06a3154e8aadd4..a3be685778a8ddeebd1e93b9555e1c5e8e40ab80 100644 (file)
@@ -40,12 +40,8 @@ check_include_file("netdb.h"             HAVE_NETDB_H)
 #cmake_pop_check_state()
 check_include_file("portaudio.h"         HAVE_PORTAUDIO_H)
 check_include_file("pwd.h"               HAVE_PWD_H)
-check_include_file("stdarg.h"            HAVE_STDARG_H)
-check_include_file("stddef.h"            HAVE_STDDEF_H)
 check_include_file("stdint.h"            HAVE_STDINT_H)
-check_include_file("stdlib.h"            HAVE_STDLIB_H)
 check_include_file("strings.h"           HAVE_STRINGS_H)
-check_include_file("string.h"            HAVE_STRING_H)
 check_include_file("sys/ioctl.h"         HAVE_SYS_IOCTL_H)
 check_include_file("sys/param.h"         HAVE_SYS_PARAM_H)
 check_include_file("sys/socket.h"        HAVE_SYS_SOCKET_H)
index 9a111da62507b64533921ba08556fbc3f4e72ccd..bfcbc0d605f82df1c67a2ec1c4e7863aa2a7cfb0 100644 (file)
@@ -262,9 +262,6 @@ read_keytab_file_from_preferences(void)
 #ifdef _WIN32
 /* prevent redefinition warnings in kfw-2.5\inc\win_mac.h */
 #undef HAVE_GETADDRINFO
-#undef HAVE_STDARG_H
-#undef HAVE_STDLIB_H
-#undef HAVE_STRING_H
 #undef HAVE_SYS_TYPES_H
 #endif /* _WIN32 */
 #include <krb5.h>
index 213a5851bac7b3166c9cac131f44006332d6d4d0..01cb1bf4f9a1825b6880e4bc27a4bc9f64ad09a4 100644 (file)
 /* Define to 1 if you have the WinSparkle library */
 #cmakedefine HAVE_SOFTWARE_UPDATE 1
 
-/* Define to 1 if you have the <stdarg.h> header file. */
-#cmakedefine HAVE_STDARG_H 1
-
-/* Define to 1 if you have the <stddef.h> header file. */
-#cmakedefine HAVE_STDDEF_H 1
-
 /* Define to 1 if you have the <stdint.h> header file. */
 #cmakedefine HAVE_STDINT_H 1
 
-/* Define to 1 if you have the <stdlib.h> header file. */
-#cmakedefine HAVE_STDLIB_H 1
-
 /* Define to 1 if you have the <strings.h> header file. */
 #cmakedefine HAVE_STRINGS_H 1
 
-/* Define to 1 if you have the <string.h> header file. */
-#cmakedefine HAVE_STRING_H 1
-
 /* Define if you have the 'strptime' function. */
 #cmakedefine HAVE_STRPTIME 1
 
index 403ee9fd29d85849e9721f1085df2784525ec6ee..ec5021b4266639dd9080253d7f6f71fcfe56e315 100644 (file)
 /* Define if you have the <snmp/version.h> header file.  */
 /* #undef HAVE_SNMP_VERSION_H */
 
-/* Define if you have the <stdarg.h> header file.  */
-#define HAVE_STDARG_H 1
-
-/* Define if you have the <stddef.h> header file.  */
-/* #undef HAVE_STDDEF_H */
-
 /* Define if you have the <sys/ioctl.h> header file.  */
 /* #undef HAVE_SYS_IOCTL_H */
 
index 4e866dc07385e096b2697eef197006e165c230be..6e216504554554a1ea0bb1cf79aef75b9053d9f9 100644 (file)
@@ -2537,7 +2537,7 @@ AC_SUBST(LIBCAP_LIBS)
 
 dnl Checks for header files.
 dnl Some of these may not be needed: http://hacks.owlfolio.org/header-survey/
-AC_CHECK_HEADERS(fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h stdarg.h stddef.h unistd.h)
+AC_CHECK_HEADERS(fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h unistd.h)
 AC_CHECK_HEADERS(sys/ioctl.h sys/param.h sys/socket.h sys/sockio.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h)
 AC_CHECK_HEADERS(netinet/in.h)
 AC_CHECK_HEADERS(arpa/inet.h arpa/nameser.h)
index 8d9762baa7decf7899cbfa39a1731429213911c2..5a278de637f04f091570e6c5d6c3b4ad39f091ff 100644 (file)
@@ -23,9 +23,7 @@
 
 #include "config.h"
 
-#ifdef HAVE_STDDEF_H
 #include <stddef.h>
-#endif
 
 #include <epan/packet.h>
 #include <epan/to_str.h>
index 4ede65f03b9dccf804977c6db85373d2a4dfde3c..5cbe79f350aae42f9831ccaa045bab71ffc906bf 100644 (file)
@@ -513,9 +513,6 @@ read_keytab_file_from_preferences(void)
 #ifdef _WIN32
 /* prevent redefinition warnings in kfw-2.5\inc\win_mac.h */
 #undef HAVE_GETADDRINFO
-#undef HAVE_STDARG_H
-#undef HAVE_STDLIB_H
-#undef HAVE_STRING_H
 #undef HAVE_SYS_TYPES_H
 #endif /* _WIN32 */
 #include <krb5.h>
@@ -4245,7 +4242,7 @@ dissect_kerberos_ChangePasswdData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_,
 
 
 /*--- End of included file: packet-kerberos-fn.c ---*/
-#line 1985 "../../asn1/kerberos/packet-kerberos-template.c"
+#line 1982 "../../asn1/kerberos/packet-kerberos-template.c"
 
 /* Make wrappers around exported functions for now */
 int
@@ -5283,7 +5280,7 @@ void proto_register_kerberos(void) {
         NULL, HFILL }},
 
 /*--- End of included file: packet-kerberos-hfarr.c ---*/
-#line 2366 "../../asn1/kerberos/packet-kerberos-template.c"
+#line 2363 "../../asn1/kerberos/packet-kerberos-template.c"
        };
 
        /* List of subtrees */
@@ -5357,7 +5354,7 @@ void proto_register_kerberos(void) {
     &ett_kerberos_ChangePasswdData,
 
 /*--- End of included file: packet-kerberos-ettarr.c ---*/
-#line 2382 "../../asn1/kerberos/packet-kerberos-template.c"
+#line 2379 "../../asn1/kerberos/packet-kerberos-template.c"
        };
 
        static ei_register_info ei[] = {
index 07a0c6e05c021e0a57ab6411cede432688b4e304..458235d78aa52471b3de1d8712bc86844b43a8b3 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 
-#ifdef HAVE_STDARG_H
 #include <stdarg.h>
-#endif
-
 #include <string.h>
 #include <time.h>
 
index 7436c3099a106fa90608406ab6d802eca186b45a..11b01b960c5caf0826564af508c4dad8fdc8bbab 100644 (file)
 #ifndef __PROTO_H__
 #define __PROTO_H__
 
-#ifdef HAVE_STDARG_H
-# include <stdarg.h>
-#else
-# include <varargs.h>
-#endif
+#include <stdarg.h>
 
 #include <glib.h>