mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-01 06:41:51 -04:00
lib: Provide MAX and MIN in system.h
This change also creates a new header file libeu.h to provide the prototypes for the function of libeu. That hides the definition of function crc32, which can conflict with zlib, from libelf. It also prevents mistakes to refer those functions from a component which doesn't link with libeu, such as libelf. Signed-off-by: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
This commit is contained in:
committed by
Mark Wielaard
parent
7bf4b63a49
commit
60b2bf1b08
@@ -1,3 +1,8 @@
|
||||
2015-10-11 Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
|
||||
|
||||
* dwelf_strtab.c: Remove sys/param.h include.
|
||||
(MIN): Remove definition.
|
||||
|
||||
2016-07-08 Mark Wielaard <mjw@redhat.com>
|
||||
|
||||
* Makefile.am (libdwelf_a_SOURCES): Add dwelf_strtab.c.
|
||||
|
||||
@@ -38,15 +38,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#include "libdwelfP.h"
|
||||
#include <system.h>
|
||||
|
||||
#ifndef MIN
|
||||
# define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
|
||||
struct Dwelf_Strent
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user