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:
Jim Warner 2016-06-09 00:00:00 -05:00 committed by Craig Small
parent 6a70466ae5
commit adfa2bc75a

View File

@ -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")))