aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpu_unai
diff options
context:
space:
mode:
authornegativeExponent2020-08-04 19:49:04 +0800
committernegativeExponent2020-08-04 20:40:58 +0800
commit908e426cc1ef2187357ed8fb59edd99b8a8060c9 (patch)
tree21a394548a7357d12af17014efc0453ad32be23e /plugins/gpu_unai
parent996dfb25c3a7ef8a485c3ce394a532cb0ee2e5c2 (diff)
downloadpcsx_rearmed-908e426cc1ef2187357ed8fb59edd99b8a8060c9.tar.gz
pcsx_rearmed-908e426cc1ef2187357ed8fb59edd99b8a8060c9.tar.bz2
pcsx_rearmed-908e426cc1ef2187357ed8fb59edd99b8a8060c9.zip
Add header guards
Diffstat (limited to 'plugins/gpu_unai')
-rw-r--r--plugins/gpu_unai/gpu_arm.h5
-rw-r--r--plugins/gpu_unai/gpu_command.h5
-rw-r--r--plugins/gpu_unai/gpu_inner.h5
-rw-r--r--plugins/gpu_unai/gpu_raster_image.h5
-rw-r--r--plugins/gpu_unai/gpu_raster_line.h5
-rw-r--r--plugins/gpu_unai/gpu_raster_polygon.h5
-rw-r--r--plugins/gpu_unai/gpu_raster_sprite.h5
-rw-r--r--plugins/gpu_unai/port.h5
-rw-r--r--plugins/gpu_unai/profiler.h5
9 files changed, 45 insertions, 0 deletions
diff --git a/plugins/gpu_unai/gpu_arm.h b/plugins/gpu_unai/gpu_arm.h
index a0b2248..b9f8f97 100644
--- a/plugins/gpu_unai/gpu_arm.h
+++ b/plugins/gpu_unai/gpu_arm.h
@@ -1,3 +1,6 @@
+#ifndef __GPU_UNAI_GPU_ARM_H__
+#define __GPU_UNAI_GPU_ARM_H__
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -7,3 +10,5 @@ void draw_spr16_full(u16 *d, void *s, u16 *pal, int lines);
#ifdef __cplusplus
}
#endif
+
+#endif /* __GPU_UNAI_GPU_ARM_H__ */
diff --git a/plugins/gpu_unai/gpu_command.h b/plugins/gpu_unai/gpu_command.h
index 7096b75..c39c81b 100644
--- a/plugins/gpu_unai/gpu_command.h
+++ b/plugins/gpu_unai/gpu_command.h
@@ -19,6 +19,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. *
***************************************************************************/
+#ifndef __GPU_UNAI_GPU_COMMAND_H__
+#define __GPU_UNAI_GPU_COMMAND_H__
+
///////////////////////////////////////////////////////////////////////////////
void gpuSetTexture(u16 tpage)
{
@@ -614,3 +617,5 @@ void gpuSendPacketFunction(const int PRIM)
///////////////////////////////////////////////////////////////////////////////
// End of code specific to non-gpulib standalone version of gpu_unai
///////////////////////////////////////////////////////////////////////////////
+
+#endif /* __GPU_UNAI_GPU_COMMAND_H__ */
diff --git a/plugins/gpu_unai/gpu_inner.h b/plugins/gpu_unai/gpu_inner.h
index 76479f9..4aab604 100644
--- a/plugins/gpu_unai/gpu_inner.h
+++ b/plugins/gpu_unai/gpu_inner.h
@@ -19,6 +19,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. *
***************************************************************************/
+#ifndef __GPU_UNAI_GPU_INNER_H__
+#define __GPU_UNAI_GPU_INNER_H__
+
///////////////////////////////////////////////////////////////////////////////
// Inner loop driver instantiation file
@@ -727,3 +730,5 @@ const PP gpuPolySpanDrivers[2048] = {
#undef TI
#undef TN
#undef TIBLOCK
+
+#endif /* __GPU_UNAI_GPU_INNER_H__ */
diff --git a/plugins/gpu_unai/gpu_raster_image.h b/plugins/gpu_unai/gpu_raster_image.h
index 87d2151..2d34b34 100644
--- a/plugins/gpu_unai/gpu_raster_image.h
+++ b/plugins/gpu_unai/gpu_raster_image.h
@@ -18,6 +18,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. *
***************************************************************************/
+#ifndef __GPU_UNAI_GPU_RASTER_IMAGE_H__
+#define __GPU_UNAI_GPU_RASTER_IMAGE_H__
+
///////////////////////////////////////////////////////////////////////////////
#ifndef USE_GPULIB
void gpuLoadImage(PtrUnion packet)
@@ -213,3 +216,5 @@ void gpuClearImage(PtrUnion packet)
}
}
}
+
+#endif /* __GPU_UNAI_GPU_RASTER_IMAGE_H__ */
diff --git a/plugins/gpu_unai/gpu_raster_line.h b/plugins/gpu_unai/gpu_raster_line.h
index 28ea074..2a7b422 100644
--- a/plugins/gpu_unai/gpu_raster_line.h
+++ b/plugins/gpu_unai/gpu_raster_line.h
@@ -19,6 +19,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. *
***************************************************************************/
+#ifndef __GPU_UNAI_GPU_RASTER_LINE_H__
+#define __GPU_UNAI_GPU_RASTER_LINE_H__
+
///////////////////////////////////////////////////////////////////////////////
// GPU internal line drawing functions
//
@@ -713,3 +716,5 @@ void gpuDrawLineG(PtrUnion packet, const PSD gpuPixelSpanDriver)
// Final run of pixels
gpuPixelSpanDriver(dst, (uintptr_t)&gcol, incr_major, end_length);
}
+
+#endif /* __GPU_UNAI_GPU_RASTER_LINE_H__ */
diff --git a/plugins/gpu_unai/gpu_raster_polygon.h b/plugins/gpu_unai/gpu_raster_polygon.h
index f66a9e2..b30286d 100644
--- a/plugins/gpu_unai/gpu_raster_polygon.h
+++ b/plugins/gpu_unai/gpu_raster_polygon.h
@@ -18,6 +18,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. *
***************************************************************************/
+#ifndef __GPU_UNAI_GPU_RASTER_POLYGON_H__
+#define __GPU_UNAI_GPU_RASTER_POLYGON_H__
+
//senquack - NOTE: GPU Unai poly routines have been rewritten/adapted
// from DrHell routines to fix multiple issues. See README_senquack.txt
@@ -1446,3 +1449,5 @@ void gpuDrawPolyGT(const PtrUnion packet, const PP gpuPolySpanDriver, u32 is_qua
}
} while (++cur_pass < total_passes);
}
+
+#endif /* __GPU_UNAI_GPU_RASTER_POLYGON_H__ */
diff --git a/plugins/gpu_unai/gpu_raster_sprite.h b/plugins/gpu_unai/gpu_raster_sprite.h
index 0afdbf5..91f7bc0 100644
--- a/plugins/gpu_unai/gpu_raster_sprite.h
+++ b/plugins/gpu_unai/gpu_raster_sprite.h
@@ -18,6 +18,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. *
***************************************************************************/
+#ifndef __GPU_UNAI_GPU_RASTER_SPRITE_H__
+#define __GPU_UNAI_GPU_RASTER_SPRITE_H__
+
///////////////////////////////////////////////////////////////////////////////
// GPU internal sprite drawing functions
@@ -163,3 +166,5 @@ void gpuDrawT(PtrUnion packet, const PT gpuTileSpanDriver)
Pixel += FRAME_WIDTH;
}
}
+
+#endif /* __GPU_UNAI_GPU_RASTER_SPRITE_H__ */
diff --git a/plugins/gpu_unai/port.h b/plugins/gpu_unai/port.h
index 238b98b..0a731f8 100644
--- a/plugins/gpu_unai/port.h
+++ b/plugins/gpu_unai/port.h
@@ -1,3 +1,6 @@
+#ifndef __GPU_UNAI_GPU_PORT_H__
+#define __GPU_UNAI_GPU_PORT_H__
+
#include <stddef.h>
#include <string.h>
@@ -34,3 +37,5 @@ void GPUwriteStatus(u32 data);
#undef s32
}
+
+#endif /* __GPU_UNAI_GPU_PORT_H__ */
diff --git a/plugins/gpu_unai/profiler.h b/plugins/gpu_unai/profiler.h
index c09c95f..a23ee38 100644
--- a/plugins/gpu_unai/profiler.h
+++ b/plugins/gpu_unai/profiler.h
@@ -1,4 +1,9 @@
+#ifndef __GPU_UNAI_GPU_PROFILER_H__
+#define __GPU_UNAI_GPU_PROFILER_H__
+
#define pcsx4all_prof_pause(...)
#define pcsx4all_prof_start_with_pause(...)
#define pcsx4all_prof_end_with_resume(...)
#define pcsx4all_prof_resume(...)
+
+#endif /* __GPU_UNAI_GPU_PROFILER_H__ */