Rename src/common macros NXT_* to DAWN_*

This commit is contained in:
Corentin Wallez
2018-07-18 13:37:54 +02:00
committed by Corentin Wallez
parent 33ca49614d
commit 83a9c9d6d9
28 changed files with 122 additions and 122 deletions

View File

@@ -99,7 +99,7 @@ namespace utils {
class OpenGLBinding : public BackendBinding {
public:
void SetupGLFWWindowHints() override {
#if defined(NXT_PLATFORM_APPLE)
#if defined(DAWN_PLATFORM_APPLE)
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE);

View File

@@ -14,9 +14,9 @@
#include "common/Platform.h"
#if defined(NXT_PLATFORM_WINDOWS)
#if defined(DAWN_PLATFORM_WINDOWS)
# include <Windows.h>
#elif defined(NXT_PLATFORM_POSIX)
#elif defined(DAWN_PLATFORM_POSIX)
# include <unistd.h>
#else
# error "Unsupported platform."
@@ -24,11 +24,11 @@
namespace utils {
#if defined(NXT_PLATFORM_WINDOWS)
#if defined(DAWN_PLATFORM_WINDOWS)
void USleep(unsigned int usecs) {
Sleep(static_cast<DWORD>(usecs / 1000));
}
#elif defined(NXT_PLATFORM_POSIX)
#elif defined(DAWN_PLATFORM_POSIX)
void USleep(unsigned int usecs) {
usleep(usecs);
}