Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
What is u_int32_t?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
kevinkwh
New Member
Join Date:
Feb 2010
Posts:
13
#1
What is u_int32_t?
Mar 2 '11, 05:54 AM
Hi I'm doing porting from Linux to Visual C ++. And I found quite a few errors. What is u_int32_t ? I can't find it in Visual C ++? Is it only available in Linux? Which type should I use in Visual C++? Thanks in advance !!!
Kevin
jjdot
New Member
Join Date:
Feb 2011
Posts:
11
#2
Mar 2 '11, 08:03 AM
It is uint32_t and not u_int32_t. Normally you just have
to include:
#include <stdint.h>
on a 32 bits machine you can replace it by
#define uint32_t unsigned int
on a 64 bits machine I think you should work too but.
Comment
Post
Cancel
kevinkwh
New Member
Join Date:
Feb 2010
Posts:
13
#3
Mar 2 '11, 08:19 AM
Thanks you !!! but this u_int32_t is ok with Linux. My colleague told me . No idea what to do next !!!
Comment
Post
Cancel
jjdot
New Member
Join Date:
Feb 2011
Posts:
11
#4
Mar 2 '11, 08:36 AM
Ok. I'ignored existence of this type. In fact I always
use stdint.h. I found u_int32_t definition in header file
#include <sys/types.h>
I think the simplest way to do is to
#include <stdint.h>
#define u_int32_t uint32_t
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment