Skip to content

Commit

Permalink
examples/testlibpq2.rs only for unix
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Aug 21, 2024
1 parent 59a9fd4 commit 3b7d2e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/testlibpq2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* <https://github.com/postgres/postgres/blob/REL_16_0/src/test/examples/testlibpq2.c>
*/

#[cfg(unix)]
fn main() -> Result<(), Box<dyn std::error::Error>> {
/*
* If the user supplies a parameter on the command line, use it as the
Expand Down Expand Up @@ -90,3 +91,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

Ok(())
}

#[cfg(not(unix))]
fn main() {
}

0 comments on commit 3b7d2e1

Please sign in to comment.