Skip to content

Commit

Permalink
Cleanup, sys/types.h
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 24, 2004
1 parent fcb5d3d commit 155d8e7
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions doomsday/Include/dd_types.h
Expand Up @@ -22,45 +22,48 @@
#ifndef __DOOMSDAY_TYPES_H__
#define __DOOMSDAY_TYPES_H__

#ifdef UNIX
# include <sys/types.h>
#endif

// The C_DECL macro, used with functions.
#ifndef C_DECL
# if defined(WIN32)
# define C_DECL __cdecl
# elif defined(UNIX)
# define C_DECL
# endif
# if defined(WIN32)
# define C_DECL __cdecl
# elif defined(UNIX)
# define C_DECL
# endif
#endif

#ifndef UNIX
typedef unsigned int uint;
typedef unsigned short ushort;
typedef unsigned int size_t;
typedef unsigned int uint;
typedef unsigned short ushort;
typedef unsigned int size_t;
#endif

typedef int fixed_t;
typedef unsigned int angle_t;
typedef int spritenum_t;
typedef unsigned int ident_t;
typedef unsigned short nodeindex_t;
typedef unsigned short thid_t;
typedef unsigned char byte;
typedef double timespan_t;
typedef char filename_t[256];
typedef int fixed_t;
typedef unsigned int angle_t;
typedef int spritenum_t;
typedef unsigned int ident_t;
typedef unsigned short nodeindex_t;
typedef unsigned short thid_t;
typedef unsigned char byte;
typedef double timespan_t;
typedef char filename_t[256];

typedef struct directory_s {
int drive;
filename_t path;
} directory_t;

#ifdef __cplusplus
# define boolean int
# define boolean int
#else // Plain C.
# ifndef __BYTEBOOL__
# define __BYTEBOOL__
# endif
# ifndef __BYTEBOOL__
# define __BYTEBOOL__
# endif
typedef enum ddboolean_e { false, true } ddboolean_t;

# define boolean ddboolean_t
# define boolean ddboolean_t
#endif

#define BAMS_BITS 16
Expand Down

0 comments on commit 155d8e7

Please sign in to comment.