c - How to avoid including "-D_BSD_SOURCE" in compile statement every time the code is compiled? -


to avoid whole bunch of strdup errors, have include -d_bsd_source in compile statement. there way can somehow include in .c file , never include in compile statement again.

at top of .c file, before includes, put this:

#define _bsd_source 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -