projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refresh patches
[gnulib.git]
/
tests
/
test-stdint.c
diff --git
a/tests/test-stdint.c
b/tests/test-stdint.c
index
9e1d57e
..
1c559b0
100644
(file)
--- a/
tests/test-stdint.c
+++ b/
tests/test-stdint.c
@@
-1,5
+1,5
@@
/* Test of <stdint.h> substitute.
/* Test of <stdint.h> substitute.
- Copyright (C) 2006
, 2007
Free Software Foundation, Inc.
+ Copyright (C) 2006
-2013
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-21,7
+21,6
@@
/* Whether to enable pedantic checks. */
#define DO_PEDANTIC 0
/* Whether to enable pedantic checks. */
#define DO_PEDANTIC 0
-#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
#include <stdint.h>
#include "verify.h"
#include <stdint.h>
#include "verify.h"
@@
-246,11
+245,15
@@
uintmax_t j[2] = { UINTMAX_C (17), UINTMAX_MAX };
verify (TYPE_MAXIMUM (uintmax_t) == UINTMAX_MAX);
verify_same_types (UINTMAX_MAX, (uintmax_t) 0 + 0);
verify (TYPE_MAXIMUM (uintmax_t) == UINTMAX_MAX);
verify_same_types (UINTMAX_MAX, (uintmax_t) 0 + 0);
+/* As of 2007, Sun C and HP-UX 10.20 cc don't support 'long long' constants in
+ the preprocessor. */
+#if !(defined __SUNPRO_C || (defined __hpux && !defined __GNUC__))
#if INTMAX_MIN && INTMAX_MAX && UINTMAX_MAX
/* ok */
#else
err or;
#endif
#if INTMAX_MIN && INTMAX_MAX && UINTMAX_MAX
/* ok */
#else
err or;
#endif
+#endif
/* 7.18.3. Limits of other integer types */
/* 7.18.3. Limits of other integer types */
@@
-350,7
+353,7
@@
verify_same_types (UINTMAX_C (17), (uintmax_t)0 + 0);
int
int
-main ()
+main (
void
)
{
return 0;
}
{
return 0;
}