mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
We dropped support for MSVC long ago, and nowadays only support MinGW for the MS-Windows builds of Emacs. * src/w32term.h: * src/w32fns.c: * src/w32.c: * nt/inc/sys/socket.h: * nt/inc/stdalign.h: * nt/inc/ms-w32.h: Remove MSVC-specific code and preprocessor conditions. * nt/inc/ms-w32.h: Don't redirect Posix functions to MS _FOO equivalents, as MinGW headers do that nowadays better, not necessarily via functions, and do not disable that when __STDC__ is defined.
20 lines
492 B
C++
20 lines
492 B
C++
#ifndef _NT_STDALIGN_H_
|
|
#define _NT_STDALIGN_H_
|
|
|
|
#include <stddef.h>
|
|
#if defined __cplusplus
|
|
template <class __t> struct __alignof_helper { char __a; __t __b; };
|
|
# define _Alignof(type) offsetof (__alignof_helper<type>, __b)
|
|
#else
|
|
# define _Alignof(type) offsetof (struct { char __a; type __b; }, __b)
|
|
#endif
|
|
#define alignof _Alignof
|
|
|
|
#if __GNUC__
|
|
# define _Alignas(a) __attribute__ ((__aligned__ (a)))
|
|
#endif
|
|
#ifdef _Alignas
|
|
# define alignas _Alignas
|
|
#endif
|
|
|
|
#endif /* _NT_STDALIGN_H_ */
|