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_OS_DIR_H )
#define INCLUDED_OS_DIR_H
#pragma once
/// \file
/// \brief OS directory-listing object.
@@ -63,6 +62,3 @@ void Directory_forEach( const char* path, const Functor& functor ){
directory_close( dir );
}
}
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_OS_FILE_H )
#define INCLUDED_OS_FILE_H
#pragma once
/// \file
/// \brief OS file-system querying and manipulation.
@@ -144,7 +143,3 @@ inline FileTime file_modified( const char* path ){
}
return st.st_mtime;
}
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined ( INCLUDED_OS_PATH_H )
#define INCLUDED_OS_PATH_H
#pragma once
/// \file
/// \brief OS file-system path comparison, decomposition and manipulation.
@@ -310,6 +309,3 @@ TextOutputStreamType& ostream_write( TextOutputStreamType& ostream, const PathDe
}
return ostream;
}
#endif