* Dotted filenames for package sndfile

This commit is contained in:
Michaël Van Canneyt 2023-03-06 14:57:58 +01:00
parent 3718b52ce0
commit 8058aaad9c
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,3 @@
unit Api.Sndfile;
{$DEFINE FPC_DOTTEDUNITS}
{$i sndfile.pp}

View File

@ -0,0 +1,3 @@
src/sndfile.pp=namespaced/Api.Sndfile.pp
{s*:src/}=namespaced/
{i+:src/}

View File

@ -34,12 +34,19 @@
** types.
}
{$PACKRECORDS C}{$MACRO ON}
{$IFNDEF FPC_DOTTEDUNITS}
unit sndfile;
{$ENDIF FPC_DOTTEDUNITS}
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
System.CTypes, UnixApi.Types;
{$ELSE FPC_DOTTEDUNITS}
uses
ctypes, unixtype;
{$ENDIF FPC_DOTTEDUNITS}
const
sndfilelib = 'sndfile';