]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Mon, 26 Jul 2010 18:42:31 +0000 (11:42 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 18:42:31 +0000 (11:42 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/dynarray.h

index 868ccf0ca88299700838a4c7cf81a8f34f69c63d..ee79c769d3cd5499532a814ca19026d65b5c3da8 100644 (file)
@@ -256,10 +256,16 @@ DynArray_Copy(DynArray *src,        // IN
 #define DEFINE_DYNARRAY_TYPE(T)     DEFINE_DYNARRAY_NAMED_TYPE(T, T)
 
 #define DEFINE_DYNARRAY_NAMED_TYPE(T, TYPE)                             \
+   DECLARE_DYNARRAY_TYPE(T)                                             \
+   DEFINEONLY_DYNARRAY_NAMED_TYPE(T, TYPE)
+
+#define DECLARE_DYNARRAY_TYPE(T)                                        \
+   typedef DynArray T##Array;
+
+#define DEFINEONLY_DYNARRAY_NAMED_TYPE(T, TYPE)                         \
                                                                         \
    typedef int (CDECLCONV *DynArray##T##Cmp)(const TYPE *,              \
                                              const TYPE *);             \
-   typedef DynArray T##Array;                                           \
                                                                         \
    static INLINE Bool                                                   \
    T##Array_Init(T##Array *a, unsigned int count)                       \