summaryrefslogtreecommitdiff
path: root/com32/lib/init.h
blob: 2d98342704aa1a45c28e77abeb5c01b01b0d2609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * init.h
 *
 * Magic to set up initializers
 */

#ifndef _INIT_H
#define _INIT_H 1

#include <inttypes.h>

#define COM32_INIT(x) static const void * const  __COM32_INIT \
	__attribute__((section(".init_array"),unused)) = (const void * const)&x

#endif /* _INIT_H */