From 1ab0fb9ee0d02aba250b7fbfe38ca64ce1a63d3f Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Tue, 28 Jun 2016 12:39:39 -0500 Subject: Add cstdlib Need file to define std::size_t Also add size_t to cstddef (per spec) Change-Id: Ic436ea2bcbc75173c89fde2a14d70662b29cdc83 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26360 Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/include/cstdlib | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/include/cstdlib (limited to 'src/include/cstdlib') diff --git a/src/include/cstdlib b/src/include/cstdlib new file mode 100644 index 000000000..e8c70cc58 --- /dev/null +++ b/src/include/cstdlib @@ -0,0 +1,42 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/cstdlib $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +#ifndef _CSTDLIB_H +#define _CSTDLIB_H + +#include + +namespace std { + // Types + using ::size_t; + + // Memory Management (just reuse stdlib.h functions) + using ::malloc; + using ::free; + using ::realloc; + using ::calloc; +} // namespace std + +#endif /* _CSTDLIB_H */ + -- cgit v1.2.3