]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Get rid of convertutf and bsd_printf for all non-Win VMware Tools
authorOliver Kurth <okurth@vmware.com>
Tue, 30 Jan 2018 00:52:19 +0000 (16:52 -0800)
committerOliver Kurth <okurth@vmware.com>
Tue, 30 Jan 2018 00:52:19 +0000 (16:52 -0800)
open-vm-tools/lib/include/str.h

index 1d0ac9f84472309e486ee39434dbe7a5aa3bd3b9..65423d7f86d9e7c72487e9053f55b838b43af9db 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2018 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -65,7 +65,7 @@ extern "C" {
  * These platforms use bsd_vsnprintf().
  * This does not mean it has bsd_vsnwprintf().
  */
-#if !defined(OPEN_VM_TOOLS)
+#if !defined(VMX86_TOOLS) || defined(_WIN32)
 #if (defined _WIN32 && !defined STR_NO_WIN32_LIBS) || \
     (defined __linux__ && !defined __UCLIBC__) || \
     defined __APPLE__
@@ -76,7 +76,7 @@ extern "C" {
 /*
  * And these platforms/setups use bsd_vsnwprintf()
  */
-#if !defined(OPEN_VM_TOOLS)
+#if !defined(VMX86_TOOLS) || defined(_WIN32)
 #if (defined _WIN32 && !defined STR_NO_WIN32_LIBS) || \
    (defined __GNUC__ && (__GNUC__ < 2                 \
                          || (__GNUC__ == 2            \