]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Get rid of more vmware_pack files.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:04 +0000 (12:11 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:04 +0000 (12:11 -0700)
gcc supports the Microsoft-style "pragma pack" syntax.
Standardize on it.  The conversion is somewhat non-trivial,
as gcc requires "pragma" to be before or after a statement,
not in the middle.

open-vm-tools/lib/hashMap/hashMap.c

index 59560407d86961b4150b44bf1c6cfbe0a73c5f91..94b0e10fdebc417de5bd8bceedace3fe941c9e57 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2009-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2009-2018,2020 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
@@ -104,9 +104,8 @@ struct HashMap {
 };
 
 #ifdef VMX86_SERVER
-typedef
-#include "vmware_pack_begin.h"
-struct HashMapOnDisk {
+#pragma pack(push, 1)
+typedef struct HashMapOnDisk {
    uint32 numEntries;
    uint32 count;
    uint32 alpha;
@@ -117,9 +116,8 @@ struct HashMapOnDisk {
 
    uint64 keyOffset;
    uint64 dataOffset;
-}
-#include "vmware_pack_end.h"
-HashMapOnDisk;
+} HashMapOnDisk;
+#pragma pack(pop)
 #endif
 
 typedef enum {