mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 17:12:39 -05:00
PDBox: Changed type of t_int to remove 64-bit related warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22167 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d0f8dfe10c
commit
349db581b5
3 changed files with 12 additions and 3 deletions
|
|
@ -49,15 +49,23 @@ extern "C" {
|
|||
#include <stddef.h> /* just for size_t -- how lame! */
|
||||
#endif
|
||||
|
||||
#ifdef ROCKBOX
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
||||
#define MAXPDSTRING 1000 /* use this for anything you want */
|
||||
#define MAXPDARG 5 /* max number of args we can typecheck today */
|
||||
|
||||
/* signed and unsigned integer types the size of a pointer: */
|
||||
#ifdef ROCKBOX
|
||||
typedef intptr_t t_int;
|
||||
#else /* ROCKBOX */
|
||||
#ifdef __alpha__
|
||||
typedef long t_int;
|
||||
#else
|
||||
typedef int t_int;
|
||||
#endif
|
||||
#endif /* ROCKBOX */
|
||||
|
||||
typedef float t_float; /* a floating-point number at most the same size */
|
||||
typedef float t_floatarg; /* floating-point type for function calls */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue