diff options
| author | Paul Eggert | 2015-09-09 12:36:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-09-09 12:36:45 -0700 |
| commit | 5a3122e1679575a8b4e24d3d965f6d6684ae118e (patch) | |
| tree | 77dd3851262b5c2e008e0dc6a549233c5f105782 /lib | |
| parent | ab21f61a552f038485d40218dfd94a16b843eb52 (diff) | |
| download | emacs-5a3122e1679575a8b4e24d3d965f6d6684ae118e.tar.gz emacs-5a3122e1679575a8b4e24d3d965f6d6684ae118e.zip | |
Merge from gnulib and texinfo
This incorporates:
2015-08-03 Improve port of stdalign to C++11
* lib/stdalign.in.h: Copy from gnulib.
* doc/misc/texinfo.tex: Copy from texinfo.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/stdalign.in.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/stdalign.in.h b/lib/stdalign.in.h index a990050b67d..c6115b6dbe0 100644 --- a/lib/stdalign.in.h +++ b/lib/stdalign.in.h | |||
| @@ -64,7 +64,9 @@ | |||
| 64 | # define _Alignof(type) offsetof (struct { char __a; type __b; }, __b) | 64 | # define _Alignof(type) offsetof (struct { char __a; type __b; }, __b) |
| 65 | # endif | 65 | # endif |
| 66 | #endif | 66 | #endif |
| 67 | #define alignof _Alignof | 67 | #if ! (defined __cplusplus && 201103 <= __cplusplus) |
| 68 | # define alignof _Alignof | ||
| 69 | #endif | ||
| 68 | #define __alignof_is_defined 1 | 70 | #define __alignof_is_defined 1 |
| 69 | 71 | ||
| 70 | /* alignas (A), also known as _Alignas (A), aligns a variable or type | 72 | /* alignas (A), also known as _Alignas (A), aligns a variable or type |
| @@ -105,8 +107,11 @@ | |||
| 105 | # define _Alignas(a) __declspec (align (a)) | 107 | # define _Alignas(a) __declspec (align (a)) |
| 106 | # endif | 108 | # endif |
| 107 | #endif | 109 | #endif |
| 108 | #if defined _Alignas || (defined __STDC_VERSION && 201112 <= __STDC_VERSION__) | 110 | #if ((defined _Alignas && ! (defined __cplusplus && 201103 <= __cplusplus)) \ |
| 111 | || (defined __STDC_VERSION && 201112 <= __STDC_VERSION__)) | ||
| 109 | # define alignas _Alignas | 112 | # define alignas _Alignas |
| 113 | #endif | ||
| 114 | #if defined alignas || (defined __cplusplus && 201103 <= __cplusplus) | ||
| 110 | # define __alignas_is_defined 1 | 115 | # define __alignas_is_defined 1 |
| 111 | #endif | 116 | #endif |
| 112 | 117 | ||