OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26bf3da
)
update typedef
author
dis-
<dis-@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 12 Jun 2012 12:29:52 +0000
(12:29 +0000)
committer
dis-
<dis-@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 12 Jun 2012 12:29:52 +0000
(12:29 +0000)
src/h-type.h
patch
|
blob
|
history
diff --git
a/src/h-type.h
b/src/h-type.h
index
9f291de
..
131981d
100644
(file)
--- a/
src/h-type.h
+++ b/
src/h-type.h
@@
-1,5
+1,7
@@
/* File: h-type.h */
+#include <stdint.h>
+
#ifndef INCLUDED_H_TYPE_H
#define INCLUDED_H_TYPE_H
@@
-113,17
+115,12
@@
typedef unsigned long huge;
/* Signed/Unsigned 16 bit value */
-typedef
signed shor
t s16b;
-typedef u
nsigned shor
t u16b;
+typedef
int16_
t s16b;
+typedef u
int16_
t u16b;
/* Signed/Unsigned 32 bit value */
-#ifdef L64 /* 64 bit longs */
-typedef signed int s32b;
-typedef unsigned int u32b;
-#else
-typedef signed long s32b;
-typedef unsigned long u32b;
-#endif
+typedef int32_t s32b;
+typedef uint32_t u32b;