blob: a8ae7fb07c4fcb104abc18e63b1f459784e38d61 (
plain)
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
31
32
33
34
35
36
37
38
|
/* Copyright (C) 2007-2010 The Android Open Source Project
**
** This software is licensed under the terms of the GNU General Public
** License version 2, as published by the Free Software Foundation, and
** may be copied, distributed, and modified under those terms.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
*/
/*
* Includes common headers for the ELFF library.
*/
#ifndef ELFF_ELFF_COMMON_H_
#define ELFF_ELFF_COMMON_H_
#include "stddef.h"
#include "sys/types.h"
#include "assert.h"
#include "memory.h"
#include "errno.h"
#include "stdlib.h"
#ifdef WIN32
#include "windows.h"
#else // WIN32
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#endif // WIN32
static inline void _set_errno(uint32_t err) {
errno = err;
}
#endif // ELFF_ELFF_COMMON_H_
|