mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 13:36:12 +01:00
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:
1 parent
76c1e643fa
commit
843deb2f6b
11 files changed
+16
-16
No files matched your search
@@ -68,7 +68,7 @@ CSFML_AUDIO_API void sfListener_setPosition(sfVector3f position);
|
||||
/// \return The listener's position
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_AUDIO_API sfVector3f sfListener_getPosition();
|
||||
CSFML_AUDIO_API sfVector3f sfListener_getPosition(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the orientation of the forward vector in the scene
|
||||
@@ -91,7 +91,7 @@ CSFML_AUDIO_API void sfListener_setDirection(sfVector3f direction);
|
||||
/// \return Listener's forward vector (not normalized)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_AUDIO_API sfVector3f sfListener_getDirection();
|
||||
CSFML_AUDIO_API sfVector3f sfListener_getDirection(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the upward vector of the listener in the scene
|
||||
@@ -114,7 +114,7 @@ CSFML_AUDIO_API void sfListener_setUpVector(sfVector3f upVector);
|
||||
/// \return Listener's upward vector (not normalized)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_AUDIO_API sfVector3f sfListener_getUpVector();
|
||||
CSFML_AUDIO_API sfVector3f sfListener_getUpVector(void);
|
||||
|
||||
|
||||
#endif // SFML_LISTENER_H
|
||||
@@ -157,7 +157,7 @@ CSFML_AUDIO_API const char** sfSoundRecorder_getAvailableDevices(size_t* count);
|
||||
/// \return The name of the default audio capture device (null terminated)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_AUDIO_API const char* sfSoundRecorder_getDefaultDevice();
|
||||
CSFML_AUDIO_API const char* sfSoundRecorder_getDefaultDevice(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the audio capture device
|
||||
|
||||
Reference in new issue
Block a user