raphdg / netifaces

I'm not the author of netifaces, I just added the project on github and I added a spec file to build the RPM package for the basic Amazon Linux AMI 2012.03
35 stars 10 forks source link

Fix VS 12.0 build error #1

Open schemacs opened 10 years ago

schemacs commented 10 years ago

This fix the following error:

c:\python27\include\pymath.h(22) : warning C4273: 'round' : inconsistent dll linkage C:\Program Files\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(516) : see previous definition of 'round' netifaces.c(406) : error C2275: 'PyObject' : illegal use of this type as an expression c:\python27\include\object.h(108) : see declaration of 'PyObject' netifaces.c(406) : error C2065: 'py_family' : undeclared identifier netifaces.c(407) : error C2065: 'py_family' : undeclared identifier