Skip to content

Commit

Permalink
Merge branch 'V5-7-patches'
Browse files Browse the repository at this point in the history
* V5-7-patches:
  CHANGES: Win32: Avoid that compiling the header file <net-snmp/net-snmp-config.h> with the MinGW gcc compiler triggers warnings about "pragma comment".
  CHANGES: Win32: Avoid that the PACKAGE_* macros defined in <net-snmp/net-snmp-config.h> cause trouble when including this header in a package that uses the GNU autotools.
  • Loading branch information
bvanassche committed Oct 17, 2011
2 parents dc21d76 + 288c0d8 commit 8670a8b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion win32/net-snmp/net-snmp-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
* When compiling with the MSVC workspace, this must be set manually.
* See the PACKAGE_VERSION variable in Unix /configure script
*/
#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "unknown"
#endif

/* Define HAVE_WIN32_PLATFORM_SDK if you have:
* Microsoft Visual Studio MSVC 6.0 and the Platform SDK (PSDK)
Expand Down Expand Up @@ -944,13 +946,17 @@
/* #undef PACKAGE_BUGREPORT */

/* Define to the full name of this package. */
#ifndef PACKAGE_NAME
#define PACKAGE_NAME "Net-SNMP"
#endif

/* Define to the full name and version of this package. */
/* #undef PACKAGE_STRING */

/* Define to the one symbol short name of this package. */
#ifndef PACKAGE_TARNAME
#define PACKAGE_TARNAME "net-snmp"
#endif

/* Define to the version of this package. */
/* #undef PACKAGE_VERSION */
Expand Down Expand Up @@ -1668,7 +1674,7 @@ enum {
#endif /* NETSNMP_USE_DLL */

/* MSVC OpenSSL linker settings. */
#if defined(WIN32) && !defined(mingw32)
#if defined(_MSC_VER)
# if defined(NETSNMP_USE_OPENSSL)
# ifdef _DLL
# ifdef _DEBUG
Expand Down
8 changes: 7 additions & 1 deletion win32/net-snmp/net-snmp-config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
* When compiling with the MSVC workspace, this must be set manually.
* See the PACKAGE_VERSION variable in Unix /configure script
*/
#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "unknown"
#endif

/* Define HAVE_WIN32_PLATFORM_SDK if you have:
* Microsoft Visual Studio MSVC 6.0 and the Platform SDK (PSDK)
Expand Down Expand Up @@ -944,13 +946,17 @@
/* #undef PACKAGE_BUGREPORT */

/* Define to the full name of this package. */
#ifndef PACKAGE_NAME
#define PACKAGE_NAME "Net-SNMP"
#endif

/* Define to the full name and version of this package. */
/* #undef PACKAGE_STRING */

/* Define to the one symbol short name of this package. */
#ifndef PACKAGE_TARNAME
#define PACKAGE_TARNAME "net-snmp"
#endif

/* Define to the version of this package. */
/* #undef PACKAGE_VERSION */
Expand Down Expand Up @@ -1668,7 +1674,7 @@ enum {
#endif /* NETSNMP_USE_DLL */

/* MSVC OpenSSL linker settings. */
#if defined(WIN32) && !defined(mingw32)
#if defined(_MSC_VER)
# if defined(NETSNMP_USE_OPENSSL)
# ifdef _DLL
# ifdef _DEBUG
Expand Down

0 comments on commit 8670a8b

Please sign in to comment.