diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-21 09:40:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-21 09:40:15 +0000 |
commit | c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac (patch) | |
tree | 02e313a83c4416f07fadf650d33aff09dfe46130 /src/include/gnunet_bandwidth_lib.h | |
parent | 40e5092e9a5db88b4c9b62cb341596fbf6ce1cf8 (diff) | |
download | gnunet-c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac.tar.gz gnunet-c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac.zip |
fixing 2012: network structure alignment now forced to be correct even on W32 using #pragma pack from gcc 4.x
Diffstat (limited to 'src/include/gnunet_bandwidth_lib.h')
-rw-r--r-- | src/include/gnunet_bandwidth_lib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/gnunet_bandwidth_lib.h b/src/include/gnunet_bandwidth_lib.h index 75f71b32c..fabe47bea 100644 --- a/src/include/gnunet_bandwidth_lib.h +++ b/src/include/gnunet_bandwidth_lib.h | |||
@@ -38,6 +38,8 @@ extern "C" | |||
38 | #include "gnunet_common.h" | 38 | #include "gnunet_common.h" |
39 | #include "gnunet_time_lib.h" | 39 | #include "gnunet_time_lib.h" |
40 | 40 | ||
41 | GNUNET_NETWORK_STRUCT_BEGIN | ||
42 | |||
41 | /** | 43 | /** |
42 | * 32-bit bandwidth used for network exchange by GNUnet, in bytes per second. | 44 | * 32-bit bandwidth used for network exchange by GNUnet, in bytes per second. |
43 | */ | 45 | */ |
@@ -48,7 +50,7 @@ struct GNUNET_BANDWIDTH_Value32NBO | |||
48 | */ | 50 | */ |
49 | uint32_t value__ GNUNET_PACKED; | 51 | uint32_t value__ GNUNET_PACKED; |
50 | }; | 52 | }; |
51 | 53 | GNUNET_NETWORK_STRUCT_END | |
52 | 54 | ||
53 | /** | 55 | /** |
54 | * Struct to track available bandwidth. Combines a time stamp with a | 56 | * Struct to track available bandwidth. Combines a time stamp with a |