Skip to content

Commit

Permalink
Switch to #pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Aug 24, 2024
1 parent db4d5e4 commit 3536aea
Show file tree
Hide file tree
Showing 126 changed files with 126 additions and 625 deletions.
6 changes: 1 addition & 5 deletions include/SFML/Audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_AUDIO_H
#define SFML_AUDIO_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand All @@ -38,6 +37,3 @@
#include <SFML/Audio/SoundRecorder.h>
#include <SFML/Audio/SoundStatus.h>
#include <SFML/Audio/SoundStream.h>


#endif // SFML_AUDIO_H
6 changes: 1 addition & 5 deletions include/SFML/Audio/Export.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_AUDIO_EXPORT_H
#define SFML_AUDIO_EXPORT_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand All @@ -43,6 +42,3 @@
#define CSFML_AUDIO_API CSFML_API_IMPORT

#endif


#endif // SFML_AUDIO_EXPORT_H
6 changes: 1 addition & 5 deletions include/SFML/Audio/Listener.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_LISTENER_H
#define SFML_LISTENER_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -115,6 +114,3 @@ CSFML_AUDIO_API void sfListener_setUpVector(sfVector3f upVector);
///
////////////////////////////////////////////////////////////
CSFML_AUDIO_API sfVector3f sfListener_getUpVector(void);


#endif // SFML_LISTENER_H
6 changes: 1 addition & 5 deletions include/SFML/Audio/Music.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_MUSIC_H
#define SFML_MUSIC_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -421,6 +420,3 @@ CSFML_AUDIO_API float sfMusic_getMinDistance(const sfMusic* music);
///
////////////////////////////////////////////////////////////
CSFML_AUDIO_API float sfMusic_getAttenuation(const sfMusic* music);


#endif // SFML_MUSIC_H
6 changes: 1 addition & 5 deletions include/SFML/Audio/Sound.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_SOUND_H
#define SFML_SOUND_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -328,6 +327,3 @@ CSFML_AUDIO_API float sfSound_getAttenuation(const sfSound* sound);
///
////////////////////////////////////////////////////////////
CSFML_AUDIO_API sfTime sfSound_getPlayingOffset(const sfSound* sound);


#endif // SFML_SOUND_H
6 changes: 1 addition & 5 deletions include/SFML/Audio/SoundBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_SOUNDBUFFER_H
#define SFML_SOUNDBUFFER_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -198,6 +197,3 @@ CSFML_AUDIO_API unsigned int sfSoundBuffer_getChannelCount(const sfSoundBuffer*
///
////////////////////////////////////////////////////////////
CSFML_AUDIO_API sfTime sfSoundBuffer_getDuration(const sfSoundBuffer* soundBuffer);


#endif // SFML_SOUNDBUFFER_H
6 changes: 1 addition & 5 deletions include/SFML/Audio/SoundBufferRecorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_SOUNDBUFFERRECORDER_H
#define SFML_SOUNDBUFFERRECORDER_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -128,6 +127,3 @@ CSFML_AUDIO_API bool sfSoundBufferRecorder_setDevice(sfSoundBufferRecorder* soun
///
////////////////////////////////////////////////////////////
CSFML_AUDIO_API const char* sfSoundBufferRecorder_getDevice(sfSoundBufferRecorder* soundBufferRecorder);


#endif // SFML_SOUNDBUFFERRECORDER_H
7 changes: 1 addition & 6 deletions include/SFML/Audio/SoundChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_SOUNDCHANNEL_H
#define SFML_SOUNDCHANNEL_H

#pragma once

////////////////////////////////////////////////////////////
/// \brief Types of sound channels that can be read/written from sound buffers/files
Expand Down Expand Up @@ -60,6 +58,3 @@ typedef enum
sfSoundChannelTopBackRight,
sfSoundChannelTopBackCenter
} sfSoundChannel;


#endif // SFML_SOUNDCHANNEL_H
6 changes: 1 addition & 5 deletions include/SFML/Audio/SoundRecorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_SOUNDRECORDER_H
#define SFML_SOUNDRECORDER_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -193,6 +192,3 @@ CSFML_AUDIO_API void sfSoundRecorder_setChannelCount(sfSoundRecorder* soundRecor
///
////////////////////////////////////////////////////////////
CSFML_AUDIO_API unsigned int sfSoundRecorder_getChannelCount(const sfSoundRecorder* soundRecorder);


#endif // SFML_SOUNDRECORDER_H
6 changes: 1 addition & 5 deletions include/SFML/Audio/SoundStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_SOUNDSTATUS_H
#define SFML_SOUNDSTATUS_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand All @@ -41,6 +40,3 @@ typedef enum
sfPaused, ///< Sound / music is paused
sfPlaying ///< Sound / music is playing
} sfSoundStatus;


#endif // SFML_SOUNDSTATUS_H
6 changes: 1 addition & 5 deletions include/SFML/Audio/SoundStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_SOUNDSTREAM_H
#define SFML_SOUNDSTREAM_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -348,6 +347,3 @@ CSFML_AUDIO_API bool sfSoundStream_isLooping(const sfSoundStream* soundStream);
///
////////////////////////////////////////////////////////////
CSFML_AUDIO_API sfTime sfSoundStream_getPlayingOffset(const sfSoundStream* soundStream);


#endif // SFML_SOUNDSTREAM_H
7 changes: 1 addition & 6 deletions include/SFML/Audio/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,11 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_AUDIO_TYPES_H
#define SFML_AUDIO_TYPES_H

#pragma once

typedef struct sfMusic sfMusic;
typedef struct sfSound sfSound;
typedef struct sfSoundBuffer sfSoundBuffer;
typedef struct sfSoundBufferRecorder sfSoundBufferRecorder;
typedef struct sfSoundRecorder sfSoundRecorder;
typedef struct sfSoundStream sfSoundStream;


#endif // SFML_AUDIO_TYPES_H
6 changes: 1 addition & 5 deletions include/SFML/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_CONFIG_H
#define SFML_CONFIG_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -150,6 +149,3 @@
////////////////////////////////////////////////////////////
#include <stdint.h>
typedef uint32_t sfChar32;


#endif // SFML_CONFIG_H
7 changes: 1 addition & 6 deletions include/SFML/GPUPreference.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_GPUPREFERENCE_H
#define SFML_GPUPREFERENCE_H

#pragma once

////////////////////////////////////////////////////////////
/// Headers
Expand Down Expand Up @@ -69,6 +67,3 @@
#define SFML_DEFINE_DISCRETE_GPU_PREFERENCE

#endif


#endif // SFML_GPUPREFERENCE_H
6 changes: 1 addition & 5 deletions include/SFML/Graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_GRAPHICS_H
#define SFML_GRAPHICS_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -55,6 +54,3 @@
#include <SFML/Graphics/VertexArray.h>
#include <SFML/Graphics/VertexBuffer.h>
#include <SFML/Graphics/View.h>


#endif // SFML_GRAPHICS_H
6 changes: 1 addition & 5 deletions include/SFML/Graphics/BlendMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_BLENDMODE_H
#define SFML_BLENDMODE_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -85,6 +84,3 @@ CSFML_GRAPHICS_API const sfBlendMode sfBlendMultiply; ///< Multiply source and d
CSFML_GRAPHICS_API const sfBlendMode sfBlendMin; ///< Take minimum between source and dest
CSFML_GRAPHICS_API const sfBlendMode sfBlendMax; ///< Take maximum between source and dest
CSFML_GRAPHICS_API const sfBlendMode sfBlendNone; ///< Overwrite dest with source


#endif // SFML_BLENDMODE_H
6 changes: 1 addition & 5 deletions include/SFML/Graphics/CircleShape.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_CIRCLESHAPE_H
#define SFML_CIRCLESHAPE_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -427,6 +426,3 @@ CSFML_GRAPHICS_API sfFloatRect sfCircleShape_getLocalBounds(const sfCircleShape*
///
////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfFloatRect sfCircleShape_getGlobalBounds(const sfCircleShape* shape);


#endif // SFML_CIRCLESHAPE_H
6 changes: 1 addition & 5 deletions include/SFML/Graphics/Color.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_COLOR_H
#define SFML_COLOR_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -130,6 +129,3 @@ CSFML_GRAPHICS_API sfColor sfColor_subtract(sfColor color1, sfColor color2);
///
////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfColor sfColor_modulate(sfColor color1, sfColor color2);


#endif // SFML_COLOR_H
6 changes: 1 addition & 5 deletions include/SFML/Graphics/ConvexShape.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_CONVEXSHAPE_H
#define SFML_CONVEXSHAPE_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -426,6 +425,3 @@ CSFML_GRAPHICS_API sfFloatRect sfConvexShape_getLocalBounds(const sfConvexShape*
///
////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfFloatRect sfConvexShape_getGlobalBounds(const sfConvexShape* shape);


#endif // SFML_CONVEXSHAPE_H
6 changes: 1 addition & 5 deletions include/SFML/Graphics/Export.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_GRAPHICS_EXPORT_H
#define SFML_GRAPHICS_EXPORT_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand All @@ -43,6 +42,3 @@
#define CSFML_GRAPHICS_API CSFML_API_IMPORT

#endif


#endif // SFML_GRAPHICS_EXPORT_H
6 changes: 1 addition & 5 deletions include/SFML/Graphics/Font.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_FONT_H
#define SFML_FONT_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -235,6 +234,3 @@ CSFML_GRAPHICS_API bool sfFont_isSmooth(const sfFont* font);
///
////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfFontInfo sfFont_getInfo(const sfFont* font);


#endif // SFML_FONT_H
6 changes: 1 addition & 5 deletions include/SFML/Graphics/FontInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_FONTINFO_H
#define SFML_FONTINFO_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand All @@ -37,6 +36,3 @@ typedef struct
{
const char* family;
} sfFontInfo;


#endif // SFML_FONTINFO_H
6 changes: 1 addition & 5 deletions include/SFML/Graphics/Glsl.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
//
////////////////////////////////////////////////////////////

#ifndef SFML_GLSL_H
#define SFML_GLSL_H
#pragma once

////////////////////////////////////////////////////////////
// Headers
Expand Down Expand Up @@ -95,6 +94,3 @@ typedef struct
{
float array[4 * 4];
} sfGlslMat4;


#endif // SFML_GLSL_H
Loading

0 comments on commit 3536aea

Please sign in to comment.