From f8a92529ec04b560b5b9e647b976892412f78134 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 5 Sep 2019 19:08:10 +0200 Subject: Fix API visibility for libsquashfs.so This commit adds a "predef.h" header to libsquashfs that exposes two macros, SQFS_API and SQFS_INTERNAL that are used to explicilty set the visibiliy of stuff that ends up in libsquashfs to default or hidden. For compatibillity with Windows which may at some point eventually be considered, the SQFS_API define is set to dllexport IF the cpp symbol SQFS_BUILDING_DLL is defined and set to import otherwise. Signed-off-by: David Oberhollenzer --- lib/sqfs/read_table.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqfs/read_table.c') diff --git a/lib/sqfs/read_table.c b/lib/sqfs/read_table.c index fec71a5..d2664d4 100644 --- a/lib/sqfs/read_table.c +++ b/lib/sqfs/read_table.c @@ -4,6 +4,7 @@ * * Copyright (C) 2019 David Oberhollenzer */ +#define SQFS_BUILDING_DLL #include "config.h" #include "sqfs/meta_reader.h" -- cgit v1.2.3