diff options
author | Jason Ekstrand <[email protected]> | 2017-10-13 10:40:45 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-10-13 15:02:34 -0700 |
commit | 1cec500c69b7fff50466b17282e83b3c8490c1fa (patch) | |
tree | f007dcbab2dfe3a957a3550fbf3a4925ffa4a9be /src/compiler/blob.h | |
parent | 77d3d71f23b32550b045b5f74b7a5e6ca54d83c5 (diff) |
blob: Use intptr_t instead of ssize_t
ssize_t is a GNU extension and is not available on Windows or MacOS.
Instead, we use intptr_t which should be effectively equivalent and is
part of the C standard. This should fix the Windows and Mac OS builds.
Fixes: 3af1c829891a4530682bce113fdd512d4f2de3c6
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103253
Reviewed-by: Jose Fonseca <[email protected]>
Tested-by: Vinson Lee <[email protected]>
Diffstat (limited to 'src/compiler/blob.h')
-rw-r--r-- | src/compiler/blob.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/blob.h b/src/compiler/blob.h index f0f28ec5fa7..2b975d45dfe 100644 --- a/src/compiler/blob.h +++ b/src/compiler/blob.h @@ -135,7 +135,7 @@ blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write); * \return An offset to space allocated within \blob to which \to_write bytes * can be written, (or -1 in case of any allocation error). */ -ssize_t +intptr_t blob_reserve_bytes(struct blob *blob, size_t to_write); /** @@ -143,7 +143,7 @@ blob_reserve_bytes(struct blob *blob, size_t to_write); * space. Note that this must be used if later reading with \sa * blob_read_uint32, since it aligns the offset correctly. */ -ssize_t +intptr_t blob_reserve_uint32(struct blob *blob); /** @@ -151,7 +151,7 @@ blob_reserve_uint32(struct blob *blob); * space. Note that this must be used if later reading with \sa * blob_read_intptr, since it aligns the offset correctly. */ -ssize_t +intptr_t blob_reserve_intptr(struct blob *blob); /** |