forked from osmocom/wireshark
![Dario Lombardo](/assets/img/avatar_default.png)
Skipping dissectors dir for now. Change-Id: I717b66bfbc7cc81b83f8c2cbc011fcad643796aa Reviewed-on: https://code.wireshark.org/review/25694 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
25 lines
686 B
C
25 lines
686 B
C
/* garrayfix.h
|
|
* Macros to work around the "data" field of a GArray having type guint8 *,
|
|
* rather than void *, so that, even though the GArray code should be
|
|
* ensuring that the data is aligned strictly enough for any data type,
|
|
* we still get warnings with -Wcast-align.
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 2007 Gerald Combs
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef __GARRAYFIX_H__
|
|
#define __GARRAYFIX_H__
|
|
|
|
#ifdef g_array_index
|
|
#undef g_array_index
|
|
#define g_array_index(a,t,i) (((t*) (void*) (a)->data) [(i)])
|
|
#endif
|
|
|
|
#define g_array_data(a) ((void*) (a)->data)
|
|
|
|
#endif /* __GARRAYFIX_H__ */
|