Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大量のエラーを回避するために、strdup常に-D_BSD_SOURCEコンパイル ステートメントに含める必要があります。これをどうにかして.cファイルに含め、コンパイルステートメントに二度と含めない方法はありますか。
strdup
-D_BSD_SOURCE
.c
.c ファイルの先頭で、インクルードの前に、次のように記述します。
#define _BSD_SOURCE