Last change
on this file since 455 was 331, checked in by coas-nagasima, 6 years ago |
prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc
|
File size:
773 bytes
|
Line | |
---|
1 | #include <stdio.h>
|
---|
2 |
|
---|
3 | int
|
---|
4 | main()
|
---|
5 | {
|
---|
6 | #if defined(__LLP64__)
|
---|
7 | if (sizeof(short) == 2
|
---|
8 | && sizeof(int) == 4
|
---|
9 | && sizeof(long int) == 4
|
---|
10 | && sizeof(long long int) == 8
|
---|
11 | && sizeof(void*) == 8) {
|
---|
12 | (void)printf("Ok\n");
|
---|
13 | } else {
|
---|
14 | (void)printf("KO __LLP64__\n");
|
---|
15 | }
|
---|
16 | #elif defined(__LP64__)
|
---|
17 | if (sizeof(short) == 2
|
---|
18 | && sizeof(int) == 4
|
---|
19 | && sizeof(long int) == 8
|
---|
20 | && sizeof(long long int) == 8
|
---|
21 | && sizeof(void*) == 8) {
|
---|
22 | (void)printf("Ok\n");
|
---|
23 | } else {
|
---|
24 | (void)printf("KO __LP64__\n");
|
---|
25 | }
|
---|
26 | #elif defined(__ILP32__)
|
---|
27 | if (sizeof(short) == 2
|
---|
28 | && sizeof(int) == 4
|
---|
29 | && sizeof(long int) == 4
|
---|
30 | && sizeof(void*) == 4) {
|
---|
31 | (void)printf("Ok\n");
|
---|
32 | } else {
|
---|
33 | (void)printf("KO __ILP32__\n");
|
---|
34 | }
|
---|
35 | #else
|
---|
36 | (void)printf("KO no __*LP*__ defined.\n");
|
---|
37 | #endif
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.