diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-12 09:03:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-12 09:09:57 +0300 |
commit | d968db82b7aac37cd788a490997376004b5ce9eb (patch) | |
tree | 77724503d5638cbcc226e6a94b16a6ff8fe0275a /source/blender/makesdna/DNA_genfile.h | |
parent | f96bfde4a5ef3c3c0b2878dec3828a967fda86cc (diff) |
makesdna: add shared utility module
Currently only a single function was duplicated which isn't so bad,
this change is to allow DNA versioning code to be shared between
dna_genfile.c and makesdna.c.
Diffstat (limited to 'source/blender/makesdna/DNA_genfile.h')
-rw-r--r-- | source/blender/makesdna/DNA_genfile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_genfile.h b/source/blender/makesdna/DNA_genfile.h index 4f67246c891..0d330c8999a 100644 --- a/source/blender/makesdna/DNA_genfile.h +++ b/source/blender/makesdna/DNA_genfile.h @@ -24,6 +24,8 @@ #ifndef __DNA_GENFILE_H__ #define __DNA_GENFILE_H__ +#include "intern/dna_utils.h" + struct SDNA; /** @@ -94,7 +96,6 @@ void *DNA_struct_reconstruct( const struct SDNA *newsdna, const struct SDNA *oldsdna, const char *compflags, int oldSDNAnr, int blocks, const void *data); -int DNA_elem_array_size(const char *str); int DNA_elem_offset(struct SDNA *sdna, const char *stype, const char *vartype, const char *name); bool DNA_struct_find(const struct SDNA *sdna, const char *stype); |