Blender Git Loki

Git Commits -> Revision ad4b774

Revision ad4b774 by Julian Eisel (master)
November 19, 2020, 12:41 (GMT)
Build-system: Force C linkage for all DNA type headers

Some DNA headers already did this, most did not. Even though many of them would
be included in C++ files and thus compiled as C++. This would be confusing and
developers may think they have to add `extern "C"` too a whole lot of
(indirect) includes to be able to use a C header in C++.

However, this is a misconception.
`extern "C"` does not cause code to be compiled with C rather than C++! It only
causes the linker to not use C++ function name mangling. See
https://stackoverflow.com/a/1041880.
Because extern DNA headers don't have function declarations, using `extern "C"`
actually should not have any effect. On the other hand, adding it causes no
harm and avoids confusion. So let's just have it consistently in C header
files.

Differential Revision: https://developer.blender.org/D9578

Reviewed by: Bastien Montagne, Sybren St�vel

Commit Details:

Full Hash: ad4b7741dba45a2be210942c18af6b6e4438f129
Parent Commit: 1395ba7
Lines Changed: +441, -0

55 Modified Paths:

/source/blender/makesdna/DNA_armature_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_boid_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_brush_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_cloth_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_collection_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_color_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_curveprofile_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_dynamicpaint_types.h (+9, -0) (Diff)
/source/blender/makesdna/DNA_effect_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_fileglobal_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_fluid_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_modifier_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_gpu_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_hair_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_image_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_ipo_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_key_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_lattice_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_light_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_linestyle_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_mask_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_material_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_meta_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_nla_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_object_enums.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_outliner_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_packedFile_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_pointcloud_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_rigidbody_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_sdna_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_shader_fx_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_simulation_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_sound_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_speaker_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_text_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_tracking_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_vec_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_vfont_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_view2d_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_view3d_enums.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_volume_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+8, -0) (Diff)
/source/blender/makesdna/dna_workspace_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_world_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_xr_types.h (+8, -0) (Diff)
/source/blender/makesdna/intern/dna_utils.h (+8, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021