Giter Site home page Giter Site logo

Comments (5)

animetosho avatar animetosho commented on July 2, 2024

Thanks for reporting!
I happened to notice something similar but wasn't sure if it was just my hacked version of OSX - looks like actual OSX has the same (weird) issue.

Could you give the following a try?

In src/common.h, find

#if defined(__cplusplus) && __cplusplus > 201100 && !(defined(_MSC_VER) && defined(__clang__))

replace with

#if defined(__cplusplus) && __cplusplus > 201100 && !(defined(_MSC_VER) && defined(__clang__)) && !defined(__APPLE__)

See if that works for you.

I got another issue with _lzcnt_u32 not being found. I added the following to the same file, just before the last line (#endif /* __YENC_COMMON */):

// weird thing with Apple's Clang
#if defined(__clang__) && defined(__APPLE__)
# define _lzcnt_u32 __lzcnt32
#endif

from node-yencode.

bgeet avatar bgeet commented on July 2, 2024

In src/common.h, find

#if defined(__cplusplus) && __cplusplus > 201100 && !(defined(_MSC_VER) && defined(__clang__))

replace with

#if defined(__cplusplus) && __cplusplus > 201100 && !(defined(_MSC_VER) && defined(__clang__)) && !defined(__APPLE__)

See if that works for you.

Builds. Thanks a lot.

I got another issue with _lzcnt_u32 not being found. I added the following to the same file, just before the last line (#endif /* __YENC_COMMON */):

// weird thing with Apple's Clang
#if defined(__clang__) && defined(__APPLE__)
# define _lzcnt_u32 __lzcnt32
#endif

Did not encounter.
Adding it (combined with the previous suggestion) does still compile.

from node-yencode.

animetosho avatar animetosho commented on July 2, 2024

Thanks a lot for confirming and testing the second edit!

from node-yencode.

bgeet avatar bgeet commented on July 2, 2024

Could you please cut a new release with this fixed.
That way macOS users can simply get it from NPM and automatically stay updated (instead of manually checking our manual builds).

from node-yencode.

animetosho avatar animetosho commented on July 2, 2024

Yes definitely. Sorry for the delay.

NPM module should now be at v1.1.1

from node-yencode.

Related Issues (12)

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.