I'm having a problem with the NIOS 2 SD Card Libary.
The problem is referenced to this part of the libary:
#ifndef bool
typedef enum e_bool { false = 0, true = 1 } bool;
#endif
The NIOS Eclipse compiler resulted me this error:
declaration does not declare anything
What might be causing this issue?
in C++
boolis a keyword not a macro so the code above inside theifdefis skipped and not compiled.In C code sometimes
boolis defined as a macro