]> granicus.if.org Git - graphviz/commitdiff
sfio: fix missing SFIO components
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 19 Jan 2023 16:13:22 +0000 (08:13 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 21 Jan 2023 23:24:53 +0000 (15:24 -0800)
These are present in the Autotools build system as a separate library, libsfiof,
linked into libsfio. They are also present in the MS Build build system inlined
into libsfio itself. This change copies the MS Build approach.

This did not cause problems because these sources only exist as fallback
implementations for functions that are also implemented as macros. All current
usages see the macro definitions so never call these functions.

Fixing this will allow removing the macro versions in an upcoming change.

lib/sfio/CMakeLists.txt

index 3492342c3c75f2eb81e8825e1a05ca337521df36..4e42c0f3f37578dd04ef0afe7eb884cb4081599f 100644 (file)
@@ -36,6 +36,10 @@ add_library(sfio STATIC
   sfvscanf.c
   sfwr.c
   sfwrite.c
+  Sfio_f/_sffileno.c
+  Sfio_f/_sfgetc.c
+  Sfio_f/_sfputc.c
+  Sfio_f/_sfslen.c
 )
 
 target_include_directories(sfio PRIVATE