Does --specs=nosys.specs set a preprocessor macro?
I'm in a situation where the library I am compiling uses the following:
#if defined(
#include <netinet/in.h>
#include <netinet/tcp.h>
#endif
That's causing the compile to fail.
I believe the headers are standard on many Unix platforms, and they will likely be present when a platform is available. Until a platform is available, I'd like to guard their inclusion on a preprocessor macro.
I'm compiling and linking with --specs=
Are then any preprocessor macros available for the guard? Does nosys.specs cause the compiler to define any macros to use?
Or are there other ways to avoid the compile problem (besides commenting out the defines)?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Jeffrey Walton for more information if necessary.