digidotcom / xbee_ansic_library

A collection of portable ANSI C code for communicating with Digi International's XBee wireless radio modules in API mode.
204 stars 116 forks source link

Update platform.h to assert Mac recognition. #2

Closed toinehartman closed 6 years ago

toinehartman commented 10 years ago

POSIX is not defined by my compiler, APPLE is. This is on GCC 4.8.3 installed from Homebrew. Compiler skips to the error on :322 and no platform_*.h is included, leading to errors during compilation.

tomlogic commented 7 years ago

samples/posix/Makefile defines the POSIX macro, which you should be able to do in the Makefile for your project as well.