Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patched crestc for Mac OS X 10.7.4 and gcc <=4.2.1 #14

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 1 comment
Open

Patched crestc for Mac OS X 10.7.4 and gcc <=4.2.1 #14

GoogleCodeExporter opened this issue Apr 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

On Mac OS X 10.7.4 and gcc <= 4.2.1, crestc will fail if you include stdlib.h 
in your C-code.  The issue with stdlib is that it causes cilly to fail due to 
some Apple-defined versions of functions that take arguments of form:
   void (^)(void), 
which is not something that cilly can handle. 

Since these are all specified within #ifdef __BLOCKS__ sections, the patch 
simply undef that!
Shouldn't hurt on other platforms, so #undef globally.

Note, I also added a `set -e` at the top of the crestc script so that any error 
in the script will cause the script to fail non-zero.  Previously any error 
code set by cilly would be swallowed because the script would happily run on 
through process_cfg.

Patch is attached.



Original issue reported on code.google.com by eric.eng...@gmail.com on 17 Jul 2012 at 9:01

Attachments:

@GoogleCodeExporter
Copy link
Author


Thanks -- I'll take a look at the patch!

Original comment by jbur...@gmail.com on 25 Jul 2012 at 4:42

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant