Skip to content

Commit 4c14125

Browse files
committed
Get rid of SIZEOF_LONG
1 parent 69d68d3 commit 4c14125

File tree

9 files changed

+13
-30
lines changed

9 files changed

+13
-30
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ include Makefile.common
207207

208208
OBJECTS = $(SOURCES_C:.c=.o)
209209

210-
DEFINES = -DHAVE_INTTYPES_H -D__LIBRETRO__ -DHAVE_MEMORY_H -DINLINE=inline -DFPM_DEFAULT -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DFRONTEND_SUPPORTS_RGB565
210+
DEFINES = -DHAVE_INTTYPES_H -D__LIBRETRO__ -DHAVE_MEMORY_H -DINLINE=inline -DFPM_DEFAULT -DSIZEOF_INT=4 -DFRONTEND_SUPPORTS_RGB565
211211

212212
ifeq ($(platform), sncps3)
213213
WARNINGS_DEFINES =

libmad/config.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@
5858
/* The size of a `int', as computed by sizeof. */
5959
#define SIZEOF_INT 4
6060

61-
/* The size of a `long', as computed by sizeof. */
62-
#define SIZEOF_LONG 8
63-
64-
/* The size of a `long long', as computed by sizeof. */
65-
#define SIZEOF_LONG_LONG 8
66-
6761
/* Define to 1 if you have the ANSI C header files. */
6862
#define STDC_HEADERS 1
6963

libmad/mad.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
# define FPM_INTEL
2424

2525
# define SIZEOF_INT 4
26-
# define SIZEOF_LONG 4
27-
# define SIZEOF_LONG_LONG 8
2826

2927
/* Id: version.h,v 1.26 2004/01/23 09:41:33 rob Exp */
3028

libmad/msvc++/config.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@
5858
/* The size of a `int', as computed by sizeof. */
5959
#define SIZEOF_INT 4
6060

61-
/* The size of a `long', as computed by sizeof. */
62-
#define SIZEOF_LONG 4
63-
64-
/* The size of a `long long', as computed by sizeof. */
65-
#define SIZEOF_LONG_LONG 8
66-
6761
/* Define to 1 if you have the ANSI C header files. */
6862
#define STDC_HEADERS 1
6963

libmad/msvc++/mad.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525

2626

2727
# define SIZEOF_INT 4
28-
# define SIZEOF_LONG 4
29-
# define SIZEOF_LONG_LONG 8
30-
3128

3229
/* Id: version.h,v 1.24 2003/05/27 22:40:37 rob Exp */
3330

libretro/jni/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ include $(ROOT_DIR)/Makefile.common
2424

2525
LOCAL_SRC_FILES = $(SOURCES_C)
2626

27-
LOCAL_CFLAGS += -O3 -DHAVE_LIBMAD -DMUSIC_SUPPORT -DINLINE=inline -DHAVE_INTTYPES_H -DHAVE_MEMORY_H -D__LIBRETRO__ -DFPM_DEFAULT -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DFRONTEND_SUPPORTS_RGB565
27+
LOCAL_CFLAGS += -O3 -DHAVE_LIBMAD -DMUSIC_SUPPORT -DINLINE=inline -DHAVE_INTTYPES_H -DHAVE_MEMORY_H -D__LIBRETRO__ -DFPM_DEFAULT -DSIZEOF_INT=4 -DFRONTEND_SUPPORTS_RGB565
2828

2929
include $(BUILD_SHARED_LIBRARY)

libretro/msvc/msvc-2003-xbox1/msvc-2003-xbox1.vcproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
Optimization="0"
2323
OptimizeForProcessor="2"
2424
AdditionalIncludeDirectories=""$(SolutionDir)\msvc-2003-xbox1""
25-
PreprocessorDefinitions="_DEBUG;_XBOX;_LIB;HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;INLINE=_inline;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;_XBOX1"
25+
PreprocessorDefinitions="_DEBUG;_XBOX;_LIB;HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;INLINE=_inline;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;FPM_DEFAULT;SIZEOF_INT=4;_XBOX1"
2626
MinimalRebuild="TRUE"
2727
BasicRuntimeChecks="3"
2828
RuntimeLibrary="1"
@@ -91,7 +91,7 @@
9191
OmitFramePointers="TRUE"
9292
OptimizeForProcessor="2"
9393
AdditionalIncludeDirectories=""$(SolutionDir)\msvc-2003-xbox1""
94-
PreprocessorDefinitions="NDEBUG;_XBOX;PROFILE;FASTCAP;_LIB;HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;INLINE=_inline;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;_XBOX1"
94+
PreprocessorDefinitions="NDEBUG;_XBOX;PROFILE;FASTCAP;_LIB;HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;INLINE=_inline;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;FPM_DEFAULT;SIZEOF_INT=4;_XBOX1"
9595
StringPooling="TRUE"
9696
RuntimeLibrary="0"
9797
BufferSecurityCheck="TRUE"
@@ -127,7 +127,7 @@
127127
OmitFramePointers="TRUE"
128128
OptimizeForProcessor="2"
129129
AdditionalIncludeDirectories=""$(SolutionDir)\msvc-2003-xbox1""
130-
PreprocessorDefinitions="NDEBUG;_XBOX;_LIB;HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;INLINE=_inline;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;_XBOX1"
130+
PreprocessorDefinitions="NDEBUG;_XBOX;_LIB;HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;INLINE=_inline;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;FPM_DEFAULT;SIZEOF_INT=4;_XBOX1"
131131
StringPooling="TRUE"
132132
RuntimeLibrary="0"
133133
BufferSecurityCheck="TRUE"
@@ -163,7 +163,7 @@
163163
OmitFramePointers="TRUE"
164164
OptimizeForProcessor="2"
165165
AdditionalIncludeDirectories=""$(SolutionDir)\msvc-2003-xbox1""
166-
PreprocessorDefinitions="NDEBUG;_XBOX;LTCG;_LIB;HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;INLINE=_inline;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;_XBOX1"
166+
PreprocessorDefinitions="NDEBUG;_XBOX;LTCG;_LIB;HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;INLINE=_inline;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;FPM_DEFAULT;SIZEOF_INT=4;_XBOX1"
167167
StringPooling="TRUE"
168168
RuntimeLibrary="0"
169169
BufferSecurityCheck="TRUE"

libretro/msvc/msvc-2010-360/msvc-2010-360.vcxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@
769769
<BufferSecurityCheck>false</BufferSecurityCheck>
770770
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
771771
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
772-
<PreprocessorDefinitions>_DEBUG;_XBOX;_XBOX360;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
772+
<PreprocessorDefinitions>_DEBUG;_XBOX;_XBOX360;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
773773
<CallAttributedProfiling>Callcap</CallAttributedProfiling>
774774
<AdditionalIncludeDirectories>src;src/libretro;libmad;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
775775
</ClCompile>
@@ -789,7 +789,7 @@
789789
<BufferSecurityCheck>false</BufferSecurityCheck>
790790
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
791791
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
792-
<PreprocessorDefinitions>_DEBUG;_XBOX;_XBOX360;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
792+
<PreprocessorDefinitions>_DEBUG;_XBOX;_XBOX360;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
793793
<CallAttributedProfiling>Callcap</CallAttributedProfiling>
794794
<AdditionalIncludeDirectories>src;src/libretro;libmad;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
795795
</ClCompile>
@@ -810,7 +810,7 @@
810810
<BufferSecurityCheck>false</BufferSecurityCheck>
811811
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
812812
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
813-
<PreprocessorDefinitions>NDEBUG;_XBOX;_XBOX360;PROFILE;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
813+
<PreprocessorDefinitions>NDEBUG;_XBOX;_XBOX360;PROFILE;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
814814
<CallAttributedProfiling>Callcap</CallAttributedProfiling>
815815
<AdditionalIncludeDirectories>src;src/libretro;libmad;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
816816
</ClCompile>
@@ -835,7 +835,7 @@
835835
<BufferSecurityCheck>false</BufferSecurityCheck>
836836
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
837837
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
838-
<PreprocessorDefinitions>NDEBUG;_XBOX;_XBOX360;PROFILE;FASTCAP;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
838+
<PreprocessorDefinitions>NDEBUG;_XBOX;_XBOX360;PROFILE;FASTCAP;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
839839
<AdditionalIncludeDirectories>src;src/libretro;libmad;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
840840
</ClCompile>
841841
<Link>
@@ -857,7 +857,7 @@
857857
<BufferSecurityCheck>false</BufferSecurityCheck>
858858
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
859859
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
860-
<PreprocessorDefinitions>NDEBUG;_XBOX;_XBOX360;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;HAVE_STDINT_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
860+
<PreprocessorDefinitions>NDEBUG;_XBOX;_XBOX360;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;HAVE_STDINT_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
861861
<AdditionalIncludeDirectories>src;src/libretro;libmad;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
862862
</ClCompile>
863863
<Link>
@@ -879,7 +879,7 @@
879879
<BufferSecurityCheck>false</BufferSecurityCheck>
880880
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
881881
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
882-
<PreprocessorDefinitions>NDEBUG;_XBOX;_XBOX360;LTCG;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
882+
<PreprocessorDefinitions>NDEBUG;_XBOX;_XBOX360;LTCG;_LIB;%(PreprocessorDefinitions);HAVE_LIBMAD;MUSIC_SUPPORT;HAVE_INTTYPES_H;__LIBRETRO__;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;FRONTEND_SUPPORTS_RGB565</PreprocessorDefinitions>
883883
<AdditionalIncludeDirectories>src;src/libretro;libmad;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
884884
</ClCompile>
885885
<Link>

libretro/msvc/msvc-2010/msvc-2010.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<Optimization>MaxSpeed</Optimization>
6969
<FunctionLevelLinking>true</FunctionLevelLinking>
7070
<IntrinsicFunctions>true</IntrinsicFunctions>
71-
<PreprocessorDefinitions>HAVE_LIBMAD;MUSIC_SUPPORT;_WIN32;HAVE_INTTYPES_H;HAVE_STRLWR;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;SIZEOF_LONG=4;SIZEOF_LONG_LONG=8;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
71+
<PreprocessorDefinitions>HAVE_LIBMAD;MUSIC_SUPPORT;_WIN32;HAVE_INTTYPES_H;HAVE_STRLWR;__LIBRETRO__;FRONTEND_SUPPORTS_RGB565;HAVE_MEMORY_H;INLINE=_inline;FPM_DEFAULT;SIZEOF_INT=4;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
7272
</ClCompile>
7373
<Link>
7474
<SubSystem>Windows</SubSystem>

0 commit comments

Comments
 (0)