0

このコードをファイルで使用していますinet_ntop.h。ここで私は宣言しました。const char *inet_ntop

#ifndef HAVE_INET_NTOP
#if defined(__cplusplus)
extern "C" {
#endif
    const char *inet_ntop(int af, const void *src, char *dst, size_t size);
#if defined(__cplusplus)
}
#endif
#endif /* HAVE_INET_NTOP */

コンパイル時に、「型が競合していますinet_ntop」というエラーが発生します。

これは Xcode 3.2.3 では機能しますが、Xcode 4.5 の同じアプリケーションでコードを使用すると、この競合するエラーが発生します。これを修正するにはどうすればよいですか?

4

0 に答える 0