projects
/
YACASL2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a1d361
)
CLOCKSの型を修正
v0.1p41
author
j8takagi
<j8takagi@nifty.com>
Tue, 26 Apr 2011 04:31:17 +0000
(13:31 +0900)
committer
j8takagi
<j8takagi@nifty.com>
Tue, 26 Apr 2011 04:31:17 +0000
(13:31 +0900)
PowerPC上でコンパイルしたときに表示される警告を抑制
include/struct.h
patch
|
blob
|
history
diff --git
a/include/struct.h
b/include/struct.h
index
a247605
..
e862786
100644
(file)
--- a/
include/struct.h
+++ b/
include/struct.h
@@
-1,6
+1,7
@@
#ifndef YACASL2_CASL2_INCLUDED
#define YACASL2_CASL2_INCLUDED
+#include <time.h>
#include "word.h"
/**
@@
-39,7
+40,7
@@
typedef struct {
CPU *cpu; /**<CPU */
WORD *memory; /**<メモリ */
int memsize; /**<メモリサイズ */
-
unsigned clocks;
/**<クロック周波数 */
+
clock_t clocks;
/**<クロック周波数 */
} SYSTEM;
extern SYSTEM *sys;