]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file changes: additional pre-gcc-4.4 clean up.
authorJohn Wolfe <jwolfe@vmware.com>
Mon, 22 Feb 2021 17:37:00 +0000 (09:37 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Mon, 22 Feb 2021 17:37:00 +0000 (09:37 -0800)
open-vm-tools/lib/include/fileIO.h
open-vm-tools/lib/include/vm_api.h

index c8fff334ae4701dcf128be651200ea5250625e28..03165f93c1e5bdb067a5ef414a36969a6e4ff53e 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2018,2021 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
@@ -509,21 +509,11 @@ const char *FileIO_Filename(FileIODescriptor *fd);
  *-------------------------------------------------------------------------
  */
 
-#if !defined(sun) || __GNUC__ >= 3
 static INLINE Bool
 FileIO_IsSuccess(FileIOResult res)      // IN
 {
    return res == FILEIO_SUCCESS;
 }
-#else
-/*
- * XXX: Crosscompiler used for Solaris tools builds (gcc 2.95.3) complains
- * whenever the above definition is unused, even though that shouldn't be
- * a problem for static functions that are also inline.  So for Solaris, we
- * have a separate definition that is neither static nor inline.
- */
-Bool FileIO_IsSuccess(FileIOResult res);
-#endif
 
 Bool FileIO_SupportsPrealloc(const char *pathName,
                              Bool fsCheck);
index 9a59fef9186ec70a9a19953f960e65acc91dadd5..cae54b78be2b26618f59eca8fda00bc5f59b89ea 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2010-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2010-2016,2021 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
 #  define VMW_LIB_CLIENT_INLINE
 #  define VMW_LIB_DYNAMIC  __declspec(dllexport)
 #  define VMW_LIB_DYNAMIC_INLINE
-#elif defined __GNUC__ && __GNUC__ >= 4 /* !_MSC_VER */
+#elif defined __GNUC__
 #  define VMW_LIB_STATIC  __attribute__ ((visibility ("hidden")))
 #  define VMW_LIB_CLIENT  __attribute__ ((visibility ("default")))
 #  define VMW_LIB_CLIENT_INLINE  __attribute__ ((visibility ("default")))