octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

INT32_T types in mex interface


From: Andy Adler
Subject: INT32_T types in mex interface
Date: Wed, 11 Oct 2006 14:00:34 -0400 (EDT)

I'm trying to compile some code written for matlab
 using the new mex interface.

I note that octave's mex.h doesn't define
INT32_T, int32_T, UINT32_T, uint32_T,
INT16_T, int16_T, UINT16_T, uint16_T
 INT8_T,  int8_T,  UINT8_T,  uint8_T


I'd like to propose a patch to mex.h to add
the following. Is this the right way to go?

#include <oct-types.h>

#define UINT64_T uint64_t
#define uint64_T uint64_t
#define  INT64_T  int64_t
#define  int64_T  int64_t
#define UINT32_T uint32_t
#define uint32_T uint32_t
#define  INT32_T  int32_t
#define  int32_T  int32_t
#define UINT16_T uint16_t
#define uint16_T uint16_t
#define  INT16_T  int16_t
#define  int16_T  int16_t
#define  UINT8_T  uint8_t
#define  uint8_T  uint8_t
#define   INT8_T   int8_t
#define   int8_T   int8_t

--
Andy Adler


reply via email to

[Prev in Thread] Current Thread [Next in Thread]