Skip to content

Commit

Permalink
add #config for overwriting foreign import library
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Jul 10, 2024
1 parent c479993 commit 6d61197
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pq.odin
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package pq

import "core:c/libc"

foreign import pq "system:pq"
LIB :: #config(POSTGRES_LIB, "system:pq")

foreign import pq { LIB }

// An opaque handle to a connection.
Conn :: distinct rawptr
Expand Down

0 comments on commit 6d61197

Please sign in to comment.