Use (void) for function prototypes with no parameters

This is required when compiling these headers as C code. These were
omitted becuase before the addition of examples these headers were
only compiled locally as C++ files where adding the void keyword is
not needed.
This commit is contained in:
Chris Thrasher committed 2023-12-20 15:33:35 -06:00
1 parent 76c1e643fa
commit 843deb2f6b
11 files changed
+16 -16

No files matched your search

+2 -2
View File
@@ -43,7 +43,7 @@ typedef uint64_t VkSurfaceKHR;
typedef struct VkAllocationCallbacks VkAllocationCallbacks;
typedef void (*sfVulkanFunctionPointer)();
typedef void (*sfVulkanFunctionPointer)(void);
////////////////////////////////////////////////////////////
/// \brief Tell whether or not the system supports Vulkan
@@ -79,4 +79,4 @@ CSFML_WINDOW_API sfVulkanFunctionPointer sfVulkan_getFunction(const char* name);
/// \return Vulkan instance extensions required for graphics
///
////////////////////////////////////////////////////////////
CSFML_WINDOW_API const char* const* sfVulkan_getGraphicsRequiredInstanceExtensions();
CSFML_WINDOW_API const char* const* sfVulkan_getGraphicsRequiredInstanceExtensions(void);