use #pragma once

This commit is contained in:
Garux
2021-10-22 02:19:50 +03:00
parent 3362f29500
commit bf6389fc26
374 changed files with 400 additions and 1565 deletions

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_BITFLAGS_H )
#define INCLUDED_BITFLAGS_H
#pragma once
#include <type_traits>
@@ -80,5 +79,3 @@ public:
private:
T flags_ = 0;
};
#endif

View File

@@ -21,6 +21,7 @@
// piclib.h
#pragma once
void LoadLBM( const char *filename, byte **picture, byte **palette );
void WriteLBMfile( const char *filename, byte *data, int width, int height

View File

@@ -25,8 +25,7 @@
Boston, MA 02111-1307, USA
*/
#ifndef _MDFOUR_H
#define _MDFOUR_H
#pragma once
#include <cstdint>
@@ -42,5 +41,3 @@ void mdfour( unsigned char *out, unsigned char *in, int n );
unsigned Com_BlockChecksum( void *buffer, int length );
void Com_BlockFullChecksum( void *buffer, int len, unsigned char *outbuf );
#endif // _MDFOUR_H

View File

@@ -19,6 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
typedef void *mutex_t;

View File

@@ -19,6 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
extern int numthreads;

View File

@@ -19,6 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
#if defined( STRICTUNZIP ) || defined( STRICTZIPUNZIP )
/* like the STRICT of WIN32, we define a pointer that cannot be converted

View File

@@ -19,10 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_CONVERT_OBJ_H )
#define INCLUDED_CONVERT_OBJ_H
#pragma once
int Convert_CountLightmaps( const char* dirname );
void Convert_ReferenceLightmaps( const char* base, std::vector<int>& lmIndices );
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MODEL_H )
#define INCLUDED_MODEL_H
#pragma once
#include <vector>
#include <functional>
@@ -34,5 +33,3 @@ public:
};
std::vector<const AssMeshWalker*> LoadModelWalker( const char *name, int frame );
#endif

View File

@@ -27,11 +27,7 @@
------------------------------------------------------------------------------- */
/* marker */
#ifndef Q3MAP2_H
#define Q3MAP2_H
#pragma once
/* version */
@@ -2400,6 +2396,3 @@ Q_EXTERN std::vector<bspAdvertisement_t> bspAds;
#define Image_LinearFloatFromsRGBFloat( c ) ( ( ( c ) <= 0.04045f ) ? ( c ) * ( 1.0f / 12.92f ) : (float)pow( ( ( c ) + 0.055f ) * ( 1.0f / 1.055f ), 2.4f ) )
#define Image_sRGBFloatFromLinearFloat( c ) ( ( ( c ) < 0.0031308f ) ? ( c ) * 12.92f : 1.055f * (float)pow( ( c ), 1.0f / 2.4f ) - 0.055f )
/* end marker */
#endif