llvm/lib/Support/COM.cpp
Sven van Haastregt 8d709d9d43 [Support] Fix some Wundef warnings
For the _WIN32 macro, it is the definedness that matters rather than
the value.  Most uses of the macro already rely on the definedness.
This commit fixes the few remaining uses that relied on the value.

Differential Revision: https://reviews.llvm.org/D51105


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340520 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-23 09:42:58 +00:00

24 lines
709 B
C++

//===-- COM.cpp - Implement COM utility classes -----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements utility classes related to COM.
//
//===----------------------------------------------------------------------===//
#include "llvm/Support/COM.h"
#include "llvm/Config/llvm-config.h"
// Include the platform-specific parts of this class.
#ifdef LLVM_ON_UNIX
#include "Unix/COM.inc"
#elif defined(_WIN32)
#include "Windows/COM.inc"
#endif