From: nobu.nakada@... Date: 2003-12-08T11:57:46+09:00 Subject: [ruby-dev:22182] Re: warning: `swap16' redefined なかだです。 At Mon, 8 Dec 2003 11:37:22 +0900, Kazuhiro NISHIYAMA wrote: > OpenBSD 3.3だとswap16とswap32でredefinedのwarningが出ます。 > > .../pack.c:81: warning: `swap16' redefined > /usr/include/sys/endian.h:122: warning: this is the location of the previous definition > .../pack.c:98: warning: `swap32' redefined > /usr/include/sys/endian.h:129: warning: this is the location of the previous definition ファイルやマクロの名前から推測すると、やっていることはほぼ同じ ように思えるのですが、単に#ifndef swap16で囲むだけで大丈夫? -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦