[Bf-blender-cvs] [6aac892fad9] master: Cleanup: Enforce C linkage for internal File Browser header

Julian Eisel noreply at git.blender.org
Wed Sep 29 17:00:23 CEST 2021


Commit: 6aac892fad9e6447cf7cfdaee5c2e9c61e2e99fe
Author: Julian Eisel
Date:   Wed Sep 29 16:59:48 2021 +0200
Branches: master
https://developer.blender.org/rB6aac892fad9e6447cf7cfdaee5c2e9c61e2e99fe

Cleanup: Enforce C linkage for internal File Browser header

This will be used by C++ code in the upcoming asset catalog UI commit.

===================================================================

M	source/blender/editors/space_file/file_intern.h

===================================================================

diff --git a/source/blender/editors/space_file/file_intern.h b/source/blender/editors/space_file/file_intern.h
index 905c0aeb8e0..65e0ad94c72 100644
--- a/source/blender/editors/space_file/file_intern.h
+++ b/source/blender/editors/space_file/file_intern.h
@@ -23,6 +23,10 @@
 
 #pragma once
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* internal exports only */
 
 struct ARegion;
@@ -152,3 +156,7 @@ void file_execute_region_panels_register(struct ARegionType *art);
 void file_tile_boundbox(const ARegion *region, FileLayout *layout, const int file, rcti *r_bounds);
 
 void file_path_to_ui_path(const char *path, char *r_pathi, int max_size);
+
+#ifdef __cplusplus
+}
+#endif



More information about the Bf-blender-cvs mailing list