aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2015-11-20 14:58:18 +1300
committerMatthew Gregan <[email protected]>2015-11-20 14:58:18 +1300
commit7edd647b79ac98d2652db7bc7f85c62abf188fb1 (patch)
treea1f3853e9707b15688e1ad9f488d169ec7e1cbfc /include
parent5a92d58dbd9b6a9317f681b19a2bd39ba2fcf1d5 (diff)
downloadcubeb-7edd647b79ac98d2652db7bc7f85c62abf188fb1.tar.gz
cubeb-7edd647b79ac98d2652db7bc7f85c62abf188fb1.zip
Change definition and allocation of cubeb_device_collection to avoid reliance on zero-sized array feature.
Diffstat (limited to 'include')
-rw-r--r--include/cubeb/cubeb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h
index e623d78..4c016e0 100644
--- a/include/cubeb/cubeb.h
+++ b/include/cubeb/cubeb.h
@@ -217,7 +217,7 @@ typedef struct {
/** Device collection. */
typedef struct {
uint32_t count; /**< Device count in collection. */
- cubeb_device_info * device[0]; /**< Array of pointers to device info. */
+ cubeb_device_info * device[1]; /**< Array of pointers to device info. */
} cubeb_device_collection;
/** User supplied data callback.