Giter Club home page Giter Club logo

Comments (7)

robertwb avatar robertwb commented on May 15, 2024

@robertwb commented

I'm not quite sure I understand--if MS_WINDOWS is defined, then isn't __stdcall defined as well?

from cython.

robertwb avatar robertwb commented on May 15, 2024

JimKleckner changed summary from

!__stdcall define wrong for Windows platform

to

__stdcall define wrong for Windows platform
commented

Correct.

That is why the stub for !__stdcall is protected by an
#ifndef MS_WINDOWS
so that it won't blow it away in that case.

The issue is that Python.h doesn't include <windows.h> so that
when the conditions are processed, !__stdcall will not yet
be defined. In that case, we need to protect it with the platform
define.

In the DllMain embedding I'm playing with, I explicitly include
windows.h which then causes it to become defined. Without the
protection of MS_WINDOWS, it has already been made into an empty
string value.

from cython.

robertwb avatar robertwb commented on May 15, 2024

JimKleckner commented

I just spent a couple of hours tracking down a linkage problem after updating my tool chain because I forgot about this patch that never got applied.

One can argue that this is major if you are trying to build something on Windoze because linkage fails.

Please either apply the patch or tell my why you won't.

from cython.

robertwb avatar robertwb commented on May 15, 2024

JimKleckner commented

Attached is an updated patch that also defines _USE_MATH_DEFINES so that
M_PI and such will get defined as with the standard math.h.

from cython.

robertwb avatar robertwb commented on May 15, 2024

@robertwb changed priority from minor to critical
commented

from cython.

robertwb avatar robertwb commented on May 15, 2024

@robertwb changed resolution to fixed
status from new to closed
commented

Sorry it has taken so long, I don't have Windows to test this on, and no one has stepped up to do the same. (Also, it was marked as "minor" so it slipped under the radar for a while.)

Thank you for the patch, it's in now.

from cython.

robertwb avatar robertwb commented on May 15, 2024

@robertwb changed milestone to 0.9.8.1
commented

from cython.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.