summary refs log tree commit diff stats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2017-01-31 16:29:51 +0200
committerMichael S. Tsirkin <mst@redhat.com>2017-02-01 03:37:17 +0200
commit60abf0a5e05134187e274ce5f32524ccf0cae1a6 (patch)
tree0039235376ddce1664c77e6425177138c3b8449e /scripts/qapi-commands.py
parent32f825dece6482297fc1b9b0e3bf31424529688a (diff)
downloadfocaccia-qemu-60abf0a5e05134187e274ce5f32524ccf0cae1a6.tar.gz
focaccia-qemu-60abf0a5e05134187e274ce5f32524ccf0cae1a6.zip
QEMU_BUILD_BUG_ON: use __COUNTER__
Some headers use QEMU_BUILD_BUG_ON. This causes a problem
if the C file including that header happens to have
QEMU_BUILD_BUG_ON at the same line number.

Fix using a widely available extension: __COUNTER__.
If unavailable, provide a stub.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions