Linuxでコンパイル可能なプログラムを
Windowsに移植したいと考えたが、そのままビルドすると以下エラー。
error C2065: 'u_int32_t' : 定義されていない識別子です。 |
どうやら、Windowsでは取り扱えない型らしい。結局、
typedef unsigned long u_int32_t;
|
で定義すると、問題は無くなった。
同様に、
typedef unsigned char u_int8_t;
typedef unsigned short u_int16_t;
typedef unsigned int u_int32_t;
らしい。
PR