I am working on a project and the code contains a macro definition:
#define __USE_MISC
The code is not using it so I think it has some other purpose.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
__USE_MISC is defined in
/usr/include/features.hon the condition:So it looks like your code wants to ensure that it’s defined in any case even if both
_BSD_SOURCEand_SVID_SOURCEare not defined (Since glibc 2.20, defining_DEFAULT_SOURCEenables__USE_MISC).See feature test macros for more information.