-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalloc.h
More file actions
30 lines (24 loc) · 553 Bytes
/
alloc.h
File metadata and controls
30 lines (24 loc) · 553 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* alloc.h
* libUnixToOSX
*
* Created by Eric Gallager on 4/2/14.
* Taken from Apple documentation.
*
* FIXME: decide where in this header to put an include for <stdlib.h>
*/
#ifndef _ALLOCA_H
#define _ALLOCA_H 1
#undef __alloca
/* Now define the internal interfaces: */
extern void *__alloca(size_t __size);
#ifdef __GNUC__
# define __alloca(size) __builtin_alloca(size)
#endif /* GCC. */
#else
# ifndef __ALLOC_H__
# define __ALLOC_H__ 1
typedef int alloc_h_dummy_t;
# endif /* !__ALLOC_H__ */
#endif /* !_ALLOCA_H */
/* EOF */