]> git.rmz.io Git - dotfiles.git/commitdiff
vim/ultisnips/cpp: replace WIN32 with _WIN32
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Fri, 6 Jul 2018 12:43:25 +0000 (13:43 +0100)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Fri, 6 Jul 2018 12:43:25 +0000 (13:43 +0100)
_WIN32 is defined by the compiler, which is more likely to be defined
than WIN32 which is defined by the Windows SDK.

vim/ultisnips/cpp.snippets

index 99cfa78ade44d2dcd8d78957de85a7662d69988f..5b55701f24dba493994aa9cbc19836a91ddd90c4 100644 (file)
@@ -56,7 +56,7 @@ snippet cplat "Cross platform pre processor split" b
 ${1}
 #elif defined(__APPLE__)
 ${2}
-#elif defined(WIN32)
+#elif defined(_WIN32)
 ${3}
 #endif
 endsnippet