QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1584|回复: 3

yunfan请进

[复制链接]
发表于 2005-11-29 17:09:01 | 显示全部楼层 |阅读模式
编译eva0.39几个版本(包括20051126)都有问题,说编译evacachedfile.cpp时uint8_t未定义,我在evacachedfile.h中加了一个 #define uint8_t unsigned short后行了。但不知道这是不是正统办法。我用的rfdt4.1
发表于 2005-11-29 17:22:57 | 显示全部楼层
哦, 0.3.9 只是个测试版本, 收集一下大家的情况。
那个不要紧, 或者在 evacachedfile.cpp 上加个
#include <inttypes.h>
也可以。

需要uint8_t 的地方其实是printf 用到的, 可以直接把那些 屏蔽掉, 无所谓的。

你那样改也可以, 严格来说有一点不妥当, 似乎是 unsigned char 更好一点。不过, short的话, 在这个文件里不影响的。没事。  

正式版的时候, 我会注意这个问题的。 多谢!
回复

使用道具 举报

发表于 2005-11-29 17:58:56 | 显示全部楼层
[code:1]
#if defined(__SVR4) && defined(__sun)
#  include <sys/int_types.h>
#elif defined(_MSC_VER)
  typedef __int8 int8_t;
  typedef unsigned __int8 uint8_t;
  typedef __int16 int16_t;
  typedef unsigned __int16 uint16_t;
  typedef __int32 int32_t;
  typedef unsigned __int32 uint32_t;
  typedef __int64 int64_t;
  typedef unsigned __int64 uint64_t;
#else
#  if defined(__OpenBSD__)
#    include <inttypes.h>
#  else
#    include <stdint.h>
#  endif
#endif
[/code:1]
回复

使用道具 举报

发表于 2005-11-29 18:58:46 | 显示全部楼层
[quote:78e96bb462="sunmoon1997"][code:1]
#if defined(__SVR4) && defined(__sun)
#  include <sys/int_types.h>
#elif defined(_MSC_VER)
  typedef __int8 int8_t;
  typedef unsigned __int8 uint8_t;
  typedef __int16 int16_t;
  typedef unsigned __int16 uint16_t;
  typedef __int32 int32_t;
  typedef unsigned __int32 uint32_t;
  typedef __int64 int64_t;
  typedef unsigned __int64 uint64_t;
#else
#  if defined(__OpenBSD__)
#    include <inttypes.h>
#  else
#    include <stdint.h>
#  endif
#endif
[/code:1][/quote]

还是你狠
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-5 10:48 , Processed in 0.202295 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表