Andy Smith wrote:
Robert Story (Coders) wrote:

On Fri, 29 Oct 2004 22:51:53 -0500 Andy wrote:
AS> Robert Story (Coders) wrote:
AS> > Uhhh, are you sure? the patch you sent (ifdef WIN32) would break all the
AS> > other platforms! Didn't the patch I sent (!defined(WIN32) &&
AS> > !defined(mingw32)) work for you? Looking at configure a little harder,
AS> > you may need to add!defined(mingw32msvc) as well... AS> AS> Yes, I attached the wrong patch, that was the first attempt. It should be:
AS> AS> #ifndef WIN32


I'm still dubious..

I'm still insolent..however...

AS> but in mingw32msvc.h I define mingw32 for consistency [...]. But as for AS> the patch #ifndef WIN32 works.

Are you sure? Because the module processing code doesn't include the net-snmp
system headers. The only way the #ifndef WIN32 would work is if the compiler
defined it internally, because it's not coming from the command line. And if
that's the case, then the configure patch isn't needed, and the interfaces.h
patch should suffice.


I have not tried it without the configure patch, but have no reason to believe that it would not work without it. MinGW does, I am almost certain, define WIN32 internally as does MSVC++. The MSVC++ people can please correct me if I am wrong since I have not touched that particular environment in years. I do know that Net-SNMP compiles with the version of the patch attached to my last email.

The MSVC Makefiles and .dsp files define WIN32 on the compiler command line. Removing the WIN32 definition from the properties of a test project resulted in WIN32 NOT being defined. This means it is not defined internally, but is added by default to new projects. It *is* defined in the Net-SNMP Makefiles and .dsp files for MSVC.


Alex


------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to