Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsbishere committed Aug 9, 2024
1 parent 18a4894 commit d1d195a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
5 changes: 3 additions & 2 deletions include/dxc/Support/Unicode.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <string>

#ifdef _WIN32
typedef int* LPBOOL;
typedef int *LPBOOL;
#include <specstrings.h>
#else
// MultiByteToWideChar which is a Windows-specific method.
Expand Down Expand Up @@ -62,7 +62,8 @@ bool UTF8ToConsoleString(const char *text, std::string *pValue, LPBOOL lossy);
bool WideToConsoleString(const wchar_t *text, size_t textLen,
std::string *pValue, LPBOOL lossy);

bool WideToConsoleString(const wchar_t *text, std::string *pValue, LPBOOL lossy);
bool WideToConsoleString(const wchar_t *text, std::string *pValue,
LPBOOL lossy);

bool UTF8ToWideString(const char *pUTF8, std::wstring *pWide);

Expand Down
25 changes: 10 additions & 15 deletions include/dxc/WinAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <vector>
#endif // __cplusplus

#include "winadapter.h" //To avoid duplicates, somethings are defined by WSL, some by dxc
#include "winadapter.h" //To avoid duplicates, somethings are defined by WSL, some by dxc

#define COM_NO_WINDOWS_H // needed to inform d3d headers that this isn't windows

Expand Down Expand Up @@ -453,20 +453,15 @@ template <typename interface> inline GUID __emulated_uuidof();
static const IID _IID = guid_from_string(spec); \
return _IID; \
} \
extern "C++" \
{ \
template <> \
inline const GUID &__wsl_stub_uuidof<interface>() \
{ \
static const IID _IID = guid_from_string(spec); \
return _IID; \
} \
template <> \
inline const GUID &__wsl_stub_uuidof<interface*>() \
{ \
return __wsl_stub_uuidof<interface>(); \
} \
}
extern "C++" { \
template <> inline const GUID &__wsl_stub_uuidof<interface>() { \
static const IID _IID = guid_from_string(spec); \
return _IID; \
} \
template <> inline const GUID &__wsl_stub_uuidof<interface *>() { \
return __wsl_stub_uuidof<interface>(); \
} \
}

#else // __EMULATE_UUID

Expand Down

0 comments on commit d1d195a

Please sign in to comment.