shared: include <stdlib.h> in "nm-macros-internal.h"

"nm-macros-internal.h" uses free() for the "nm_auto_free"
macro. Thus, as long as that code is there, we anyway must
include <stdlib.h> along the line.

Do it in "nm-macros-internal.h" to make the header self-contained.
This commit is contained in:
Thomas Haller
2016-03-23 17:55:27 +01:00
parent 2f6517df43
commit 2c11e23c34

View File

@@ -22,6 +22,8 @@
#ifndef __NM_MACROS_INTERNAL_H__
#define __NM_MACROS_INTERNAL_H__
#include <stdlib.h>
/********************************************************/
#define nm_auto(fcn) __attribute ((cleanup(fcn)))