- fix c-api: insert a missing typedef for the metadata api enum.
- gix c-api: move cpp-include to cpp-part of the api.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
pull/267/head
Kim Kulling 2014-05-04 15:24:12 +02:00
parent 14457d2be4
commit 8c8c5329e9
3 changed files with 7 additions and 7 deletions

View File

@ -60,7 +60,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* Enum used to distinguish data types
*/
// -------------------------------------------------------------------------------
enum aiMetadataType
typedef enum aiMetadataType
{
AI_BOOL = 0,
AI_INT = 1,
@ -72,7 +72,7 @@ enum aiMetadataType
#ifndef SWIG
FORCE_32BIT = INT_MAX
#endif
};
} aiMetadataType;

View File

@ -122,14 +122,14 @@ struct aiNode
#ifdef __cplusplus
/** Constructor */
aiNode()
// set all members to zero by default
// set all members to zero by default
: mName("")
, mParent(NULL)
, mNumChildren(0)
, mChildren(NULL)
, mNumMeshes(0)
, mMeshes(NULL)
, mMetaData(NULL)
, mMetaData(NULL)
{
}
@ -137,13 +137,13 @@ struct aiNode
/** Construction from a specific name */
aiNode(const std::string& name)
// set all members to zero by default
: mName(name)
: mName(name)
, mParent(NULL)
, mNumChildren(0)
, mChildren(NULL)
, mNumMeshes(0)
, mMeshes(NULL)
, mMetaData(NULL)
, mMetaData(NULL)
{
}

View File

@ -46,7 +46,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define AI_TYPES_H_INC
// Some runtime headers
#include <cstring>
#include <sys/types.h>
#include <memory.h>
#include <math.h>
@ -66,6 +65,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "quaternion.h"
#ifdef __cplusplus
#include <cstring>
#include <new> // for std::nothrow_t
#include <string> // for aiString::Set(const std::string&)