mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
lib/makefile.w32-in ($(BLD)/md5.$(O)): ($(BLD)/sha1.$(O)): ($(BLD)/sha256.$(O)): ($(BLD)/sha512.$(O)): Depend on $(EMACS_ROOT)/nt/inc/stdalign.h. Suggested by Christoph Scholtes <cschol2112@googlemail.com>. lib/getopt_.h: Regenerate. nt/inc/stdalign.h: New file. Fixes: debbugs:11527
16 lines
485 B
C++
16 lines
485 B
C++
#ifndef _NT_STDALIGN_H_
|
|
#define _NT_STDALIGN_H_
|
|
|
|
/* This header has the necessary stuff from lib/stdalign.in.h, but
|
|
avoids the need to have Sed at build time. */
|
|
|
|
#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
|
|
|
|
#endif /* _NT_STDALIGN_H_ */
|