From 07e95136750a8bd9150d7a24cc94852cc091949c Mon Sep 17 00:00:00 2001 From: halleyscometsw Date: Thu, 3 Apr 2008 13:56:50 +0000 Subject: [PATCH] cleanup indents, don't use pstdint.h outside of MSVC git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@68 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- src/meta/adx_header.c | 2 +- src/streamfile.h | 2 +- src/streamtypes.h | 11 ++++++----- src/vgmstream.c | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/meta/adx_header.c b/src/meta/adx_header.c index c84bde1a..d7d630f8 100644 --- a/src/meta/adx_header.c +++ b/src/meta/adx_header.c @@ -1,4 +1,4 @@ -#if _MSC_VER +#ifdef _MSC_VER #define _USE_MATH_DEFINES #endif #include diff --git a/src/streamfile.h b/src/streamfile.h index b00bb3ed..7ebbaaa9 100644 --- a/src/streamfile.h +++ b/src/streamfile.h @@ -3,7 +3,7 @@ */ #ifdef _MSC_VER - #define _CRT_SECURE_NO_DEPRECATE +#define _CRT_SECURE_NO_DEPRECATE #endif #include diff --git a/src/streamtypes.h b/src/streamtypes.h index 573789f2..b05ee779 100644 --- a/src/streamtypes.h +++ b/src/streamtypes.h @@ -2,16 +2,17 @@ * streamtypes.h - widely used type definitions */ -#include "pstdint.h" #ifndef _STREAMTYPES_H #define _STREAMTYPES_H -/* Fix for Visual C++ 2005: will not compile otherwise */ #ifdef _MSC_VER - #define inline _inline - #define strcasecmp _stricmp - #define snprintf _snprintf +#include "pstdint.h" +#define inline _inline +#define strcasecmp _stricmp +#define snprintf _snprintf +#else +#include #endif typedef int16_t sample; diff --git a/src/vgmstream.c b/src/vgmstream.c index 39460ecc..bb2067e3 100644 --- a/src/vgmstream.c +++ b/src/vgmstream.c @@ -1,5 +1,5 @@ #ifdef _MSC_VER - #define _CRT_SECURE_NO_DEPRECATE +#define _CRT_SECURE_NO_DEPRECATE #endif #include