Giter VIP home page Giter VIP logo

libslas's People

Contributors

jdepner avatar

Watchers

 avatar

Forkers

schwehr

libslas's Issues

_swab?

osx should not be getting the use of _swab. Something is up with the ifdefs. I think there is a problem with the Makefile that I'm getting -DNVWIN3X. osx is more like linux than windows. I would suggest flipping the sense of your makefile if.... if windows otherwise all else.

Also, swab, like getpid, needs #include "unistd.h"

gcc -c -ansi -O -Wall -c -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE -DNVWIN3X libslas.c
In file included from libslas.c:127:
./libslas_pd_functions.h:248:5: warning: implicit declaration of function '_swab' [-Wimplicit-function-declaration]
    _swab((char *)word, (char *)&temp, 2);

getpid needs include unistd.h

osx says getpid needs unistd.h, ubuntu says (via man getpid):

       #include <sys/types.h>
       #include <unistd.h>

osx:

gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0

gcc -c -ansi -O -Wall -c -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE -DNVWIN3X libslas.c
In file included from libslas.c:127:
./libslas_pd_functions.h:75:22: warning: implicit declaration of function 'getpid'
      [-Wimplicit-function-declaration]
  if (ret == -999 && getpid () > 1) return;

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.