Convert to pragma once

This commit is contained in:
Jack Andersen 2018-10-06 17:41:40 -10:00
parent 37461f2165
commit e84546be2d
10 changed files with 10 additions and 30 deletions

View File

@ -1,5 +1,4 @@
#ifndef __KABU_ASYNCIO_HPP__
#define __KABU_ASYNCIO_HPP__
#pragma once
#ifndef _WIN32
#include <aio.h>
@ -49,4 +48,3 @@ public:
}
#endif // __KABU_ASYNCIO_HPP__

View File

@ -1,5 +1,4 @@
#ifndef __KABU_BLOCKALLOCATIONATABLE_HPP__
#define __KABU_BLOCKALLOCATIONATABLE_HPP__
#pragma once
#include "Constants.hpp"
@ -39,4 +38,3 @@ public:
uint16_t numFreeBlocks() const { return m_freeBlocks; }
};
}
#endif // __KABU_BLOCKALLOCATIONATABLE_HPP__

View File

@ -1,5 +1,4 @@
#ifndef __KABU_CARD_HPP__
#define __KABU_CARD_HPP__
#pragma once
#include "BlockAllocationTable.hpp"
#include "Directory.hpp"
@ -438,4 +437,3 @@ public:
};
}
#endif // __CARD_HPP__

View File

@ -1,5 +1,4 @@
#ifndef __KABU_CONSTANTS_HPP__
#define __KABU_CONSTANTS_HPP__
#pragma once
#include <stdint.h>
#include "Util.hpp"
@ -90,4 +89,3 @@ enum class EEncoding : uint16_t
};
}
#endif // __KABU_CONSTANTS_HPP__

View File

@ -1,5 +1,4 @@
#ifndef __KABU_DIRECTORY_HPP__
#define __KABU_DIRECTORY_HPP__
#pragma once
#include "File.hpp"
@ -41,4 +40,3 @@ public:
};
}
#endif // __KABU_DIRECTORY_HPP__

View File

@ -1,5 +1,4 @@
#ifndef __KABU_FILE_HPP__
#define __KABU_FILE_HPP__
#pragma once
#include "Constants.hpp"
@ -44,4 +43,3 @@ public:
};
}
#endif // __KABU_FILE_HPP__

View File

@ -1,5 +1,4 @@
#ifndef SRAM_HPP
#define SRAM_HPP
#pragma once
#include <stdint.h>
@ -73,4 +72,3 @@ union SRAM
extern const SRAM g_SRAM;
}
#endif // SRAM_HPP

View File

@ -1,5 +1,4 @@
#ifndef __KABU_UTIL_HPP__
#define __KABU_UTIL_HPP__
#pragma once
#ifndef _WIN32
#include <cstdlib>
@ -306,4 +305,3 @@ enum class ECardResult
};
}
#endif // __KABU_UTIL_HPP__

View File

@ -1,5 +1,4 @@
#ifndef __KABU_WIDESTRINGCONVERT_HPP__
#define __KABU_WIDESTRINGCONVERT_HPP__
#pragma once
#include <string>
@ -9,4 +8,3 @@ std::string WideToUTF8(std::wstring_view src);
std::wstring UTF8ToWide(std::string_view src);
}
#endif // __KABU_WIDESTRINGCONVERT_HPP__

View File

@ -1,5 +1,4 @@
#ifndef _HECL_WINSUPPORT_H_
#define _HECL_WINSUPPORT_H_
#pragma once
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
@ -11,4 +10,3 @@
void* memmem(const void *haystack, size_t hlen, const void *needle, size_t nlen);
#endif // _HECL_WINSUPPORT_H_