aco: include <cstddef> in aco_util.h

It's needed for ptrdiff.

Fixes: 59fdaa1985 ('aco: reorder and cleanup #includes')
Closes: #5076
Reviewed-by: Tony Wasserka <tony.wasserka@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11947>
(cherry picked from commit 1d8e9430d2)
This commit is contained in:
Daniel Schürmann 2021-07-19 09:11:36 +02:00 committed by Dylan Baker
parent 83d94cfe71
commit f2bdec9ecd
2 changed files with 3 additions and 2 deletions

View file

@ -76,7 +76,7 @@
"description": "aco: include <cstddef> in aco_util.h",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "59fdaa1985f9269c40f0ca4704fbeb3fb05c4c2f"
},

View file

@ -29,6 +29,7 @@
#include "util/bitscan.h"
#include <cassert>
#include <cstddef>
#include <iterator>
#include <vector>
@ -51,7 +52,7 @@ public:
using reverse_iterator = std::reverse_iterator<iterator>;
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
using size_type = uint16_t;
using difference_type = ptrdiff_t;
using difference_type = std::ptrdiff_t;
/*! \brief Compiler generated default constructor
*/