On 05/24/16 03:26, Moreno Floris wrote: > I was wondering what does NETSNMP_IMPORT (a macro for 'extern') mean and > why is it placed before several function prototypes, for example in > tool.h (but not only there). > > I'm not a C expert but as far as I understood there is no use for > 'extern' before function prototypes because they're all 'extern' by default. > > Maybe it's like a placeholder for coders to distinguish between > functions that differ under some aspect. But other than that I have no > clue, can somebody please explain me?
Hello Moreno, If you have a look at win32/net-snmp/net-snmp-config.h.in then you will see that the NETSNMP_IMPORT macro is essential when building the Net-SNMP source code on a Windows system as a DLL. Bart. ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders