Named typedef-ed structs Gave name to structs that were defined like anonymous struct with name given by typedef. Example 'typedef struct {...} Foo;' -> 'typedef struct Foo {...} Foo;'
This commit is contained in:
parent
37d066b99b
commit
2a775cad6f
5 changed files with 5 additions and 5 deletions
|
@ -267,7 +267,7 @@ typedef void (*SDL_KernelMemoryBarrierFunc)();
|
|||
*
|
||||
* It is a struct so people don't accidentally use numeric operations on it.
|
||||
*/
|
||||
typedef struct { int value; } SDL_AtomicInt;
|
||||
typedef struct SDL_AtomicInt { int value; } SDL_AtomicInt;
|
||||
|
||||
/**
|
||||
* Set an atomic variable to a new value if it is currently an old value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue