Is defined on the non-FreeBSD cygwin platform.
This is because its libc is based on newlib, which borrows
a lot of FreeBSD code unchanged. So, can't unconditionally
define this macro but must guard it.
SVN-Revision: 817
#ifdef __FreeBSD__
#include <sys/cdefs.h> /* For __FBSDID */
#else
+/* Some non-FreeBSD platforms such as newlib-derived ones like
+ * cygwin, have __FBSDID, so this definition must be guarded.
+ */
+#ifndef __FBSDID
#define __FBSDID(a) /* null */
#endif
+#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
#define snprintf sprintf_s
#include <dmalloc.h>
#endif
-/* No non-FreeBSD platform will have __FBSDID, so just define it here. */
#ifdef __FreeBSD__
#include <sys/cdefs.h> /* For __FBSDID */
#else
+/* Some non-FreeBSD platforms such as newlib-derived ones like
+ * cygwin, have __FBSDID, so this definition must be guarded.
+ */
+#ifndef __FBSDID
#define __FBSDID(a) /* null */
#endif
+#endif
/*
* Redefine DEFINE_TEST for use in defining the test functions.