library: please keep procps-private.h free of #include
The 'procps.h' header includes all other headers which contain exported (public) functions, while this header has some (private) macros required for implementation. If we mix the two, by including procps.h in this file, we'll lose all hope of the compiler catching the kinds of errors corrected in an immediately preceding patch. [ we must be diligent, always constantly striving to ] [ protect jimmy from ill effects due to copy & paste ] Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
6a70466ae5
commit
adfa2bc75a
@ -18,8 +18,6 @@
|
||||
#ifndef PROCPS_PRIVATE_H
|
||||
#define PROCPS_PRIVATE_H
|
||||
|
||||
#include <proc/procps.h>
|
||||
|
||||
#define FUNCTION __attribute__((__const__)) // no access to global mem, even via ptr, and no side effect
|
||||
#define PROCPS_EXPORT __attribute__ ((visibility("default")))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user