diff --git a/src/devices/cpu/sh2/sh2.cpp b/src/devices/cpu/sh2/sh2.cpp index 629d447323e..e48a5197265 100644 --- a/src/devices/cpu/sh2/sh2.cpp +++ b/src/devices/cpu/sh2/sh2.cpp @@ -2681,5 +2681,5 @@ void sh2_device::execute_set_input(int irqline, int state) } } -#include "sh2comn.c" -#include "sh2drc.c" +#include "sh2comn.cpp" +#include "sh2drc.cpp" diff --git a/src/devices/cpu/tms32031/32031ops.cpp b/src/devices/cpu/tms32031/32031ops.cpp index 1475c5f8839..9c1786f0c86 100644 --- a/src/devices/cpu/tms32031/32031ops.cpp +++ b/src/devices/cpu/tms32031/32031ops.cpp @@ -2,7 +2,7 @@ // copyright-holders:Aaron Giles /*************************************************************************** - 32031ops.c + 32031ops.cpp TMS32031/2 emulator diff --git a/src/devices/cpu/tms32031/tms32031.cpp b/src/devices/cpu/tms32031/tms32031.cpp index 1d8096ce959..e8217446d29 100644 --- a/src/devices/cpu/tms32031/tms32031.cpp +++ b/src/devices/cpu/tms32031/tms32031.cpp @@ -846,4 +846,4 @@ void tms3203x_device::execute_run() // CORE OPCODES //************************************************************************** -#include "32031ops.c" +#include "32031ops.cpp" diff --git a/src/devices/cpu/tms32051/tms32051.cpp b/src/devices/cpu/tms32051/tms32051.cpp index 01a5a414022..d7c5334be54 100644 --- a/src/devices/cpu/tms32051/tms32051.cpp +++ b/src/devices/cpu/tms32051/tms32051.cpp @@ -105,7 +105,7 @@ void tms32051_device::DM_WRITE16(UINT16 address, UINT16 data) m_data->write_word(address << 1, data); } -#include "32051ops.c" +#include "32051ops.cpp" #include "32051ops.h" void tms32051_device::op_group_be() diff --git a/src/devices/cpu/tms34010/34010gfx.cpp b/src/devices/cpu/tms34010/34010gfx.cpp index 15394269a77..23c9b72cc97 100644 --- a/src/devices/cpu/tms34010/34010gfx.cpp +++ b/src/devices/cpu/tms34010/34010gfx.cpp @@ -641,35 +641,35 @@ const tms340x0_device::pixblt_b_op_func tms340x0_device::s_fill_op_table[] = /* 1bpp cases */ #define BITS_PER_PIXEL 1 #define FUNCTION_NAME(base) base##_1_op0 - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 2bpp cases */ #define BITS_PER_PIXEL 2 #define FUNCTION_NAME(base) base##_2_op0 - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 4bpp cases */ #define BITS_PER_PIXEL 4 #define FUNCTION_NAME(base) base##_4_op0 - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 8bpp cases */ #define BITS_PER_PIXEL 8 #define FUNCTION_NAME(base) base##_8_op0 - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 16bpp cases */ #define BITS_PER_PIXEL 16 #define FUNCTION_NAME(base) base##_16_op0 - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL @@ -687,35 +687,35 @@ const tms340x0_device::pixblt_b_op_func tms340x0_device::s_fill_op_table[] = /* 1bpp cases */ #define BITS_PER_PIXEL 1 #define FUNCTION_NAME(base) base##_1_opx - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 2bpp cases */ #define BITS_PER_PIXEL 2 #define FUNCTION_NAME(base) base##_2_opx - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 4bpp cases */ #define BITS_PER_PIXEL 4 #define FUNCTION_NAME(base) base##_4_opx - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 8bpp cases */ #define BITS_PER_PIXEL 8 #define FUNCTION_NAME(base) base##_8_opx - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 16bpp cases */ #define BITS_PER_PIXEL 16 #define FUNCTION_NAME(base) base##_16_opx - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL @@ -734,35 +734,35 @@ const tms340x0_device::pixblt_b_op_func tms340x0_device::s_fill_op_table[] = /* 1bpp cases */ #define BITS_PER_PIXEL 1 #define FUNCTION_NAME(base) base##_1_op0_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 2bpp cases */ #define BITS_PER_PIXEL 2 #define FUNCTION_NAME(base) base##_2_op0_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 4bpp cases */ #define BITS_PER_PIXEL 4 #define FUNCTION_NAME(base) base##_4_op0_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 8bpp cases */ #define BITS_PER_PIXEL 8 #define FUNCTION_NAME(base) base##_8_op0_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 16bpp cases */ #define BITS_PER_PIXEL 16 #define FUNCTION_NAME(base) base##_16_op0_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL @@ -780,35 +780,35 @@ const tms340x0_device::pixblt_b_op_func tms340x0_device::s_fill_op_table[] = /* 1bpp cases */ #define BITS_PER_PIXEL 1 #define FUNCTION_NAME(base) base##_1_opx_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 2bpp cases */ #define BITS_PER_PIXEL 2 #define FUNCTION_NAME(base) base##_2_opx_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 4bpp cases */ #define BITS_PER_PIXEL 4 #define FUNCTION_NAME(base) base##_4_opx_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 8bpp cases */ #define BITS_PER_PIXEL 8 #define FUNCTION_NAME(base) base##_8_opx_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL /* 16bpp cases */ #define BITS_PER_PIXEL 16 #define FUNCTION_NAME(base) base##_16_opx_trans - #include "34010gfx.c" + #include "34010gfx.cpp" #undef FUNCTION_NAME #undef BITS_PER_PIXEL diff --git a/src/devices/cpu/tms34010/tms34010.cpp b/src/devices/cpu/tms34010/tms34010.cpp index 4faf2967bc8..e09351301a4 100644 --- a/src/devices/cpu/tms34010/tms34010.cpp +++ b/src/devices/cpu/tms34010/tms34010.cpp @@ -458,14 +458,14 @@ UINT32 tms340x0_device::raster_op_21(UINT32 newpix, UINT32 oldpix) { return (old OPCODE TABLE & IMPLEMENTATIONS ***************************************************************************/ -#include "34010fld.c" +#include "34010fld.cpp" /* includes the static function prototypes and the master opcode table */ -#include "34010tbl.c" +#include "34010tbl.cpp" /* includes the actual opcode implementations */ -#include "34010ops.c" -#include "34010gfx.c" +#include "34010ops.cpp" +#include "34010gfx.cpp" diff --git a/src/devices/video/voodoo.cpp b/src/devices/video/voodoo.cpp index 44765270482..5646d1d546d 100644 --- a/src/devices/video/voodoo.cpp +++ b/src/devices/video/voodoo.cpp @@ -251,7 +251,7 @@ static void raster_generic_2tmu(void *dest, INT32 scanline, const poly_extent *e #define RASTERIZER_ENTRY(fbzcp, alpha, fog, fbz, tex0, tex1) \ RASTERIZER(fbzcp##_##alpha##_##fog##_##fbz##_##tex0##_##tex1, (((tex0) == 0xffffffff) ? 0 : ((tex1) == 0xffffffff) ? 1 : 2), fbzcp, fbz, alpha, fog, tex0, tex1) -#include "voodoo.c" +#include "voodoo.cpp" #undef RASTERIZER_ENTRY @@ -268,7 +268,7 @@ static void raster_generic_2tmu(void *dest, INT32 scanline, const poly_extent *e static const raster_info predef_raster_table[] = { -#include "voodoo.c" +#include "voodoo.cpp" { 0 } }; diff --git a/src/lib/netlist/build/makefile b/src/lib/netlist/build/makefile index 162b21a0ce6..0f29882e8b7 100644 --- a/src/lib/netlist/build/makefile +++ b/src/lib/netlist/build/makefile @@ -146,15 +146,15 @@ maketree: $(sort $(OBJDIRS)) # generic rules #------------------------------------------------- -$(OBJ)/%.o: $(SRC)/%.c +$(OBJ)/%.o: $(SRC)/%.cpp @echo Compiling $<... $(CC) $(CDEFS) $(CFLAGS) -c $< -o $@ -$(OBJ)/%.pp: $(SRC)/%.c | $(OSPREBUILD) +$(OBJ)/%.pp: $(SRC)/%.cpp | $(OSPREBUILD) @echo Compiling $<... $(CC) $(CDEFS) $(CFLAGS) -E $< -o $@ -$(OBJ)/%.s: $(SRC)/%.c | $(OSPREBUILD) +$(OBJ)/%.s: $(SRC)/%.cpp | $(OSPREBUILD) @echo Compiling $<... $(CC) $(CDEFS) $(CFLAGS) -S $< -o $@ diff --git a/src/mame/audio/irem.cpp b/src/mame/audio/irem.cpp index 6a765ce5a69..20303cb17c3 100644 --- a/src/mame/audio/irem.cpp +++ b/src/mame/audio/irem.cpp @@ -409,7 +409,7 @@ ADDRESS_MAP_END #define USE_FRONTIERS 1 #define USE_FIXED_STV 1 -#include "nl_kidniki.c" +#include "nl_kidniki.cpp" NETLIST_START(kidniki_interface)