Skip to content

Commit

Permalink
Merge pull request #218 from lolgab/update-idn2
Browse files Browse the repository at this point in the history
Update from idn11 to idn2
  • Loading branch information
Pask423 authored Sep 9, 2022
2 parents c4a7bc3 + 7a2309a commit 6373296
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
~/.ivy2/cache
~/.coursier
key: sbt-cache-${{ runner.os }}-${{ hashFiles('project/build.properties') }}
- name: Install libidn11-dev
- name: Install libidn2-dev
run: |
sudo apt-get update
sudo apt-get install libidn11-dev
sudo apt-get install libidn2-dev
- name: Compile
run: sbt -v compile
- name: Test
Expand Down
8 changes: 4 additions & 4 deletions core/src/main/scalanative/sttp/model/internal/idn/CIdn.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ package sttp.model.internal.idn

import scala.scalanative.unsafe.{CInt, CString, Ptr, extern, link, name}

@link("idn")
@link("idn2")
@extern
private[idn] object CIdn {
@name("idna_to_ascii_8z")
@name("idn2_to_ascii_8z")
def toAscii(input: CString, output: Ptr[CString], flags: CInt): CInt = extern

@name("idna_strerror")
@name("idn2_strerror")
def errorMsg(rc: CInt): CString = extern

@name("idn_free")
@name("idn2_free")
def free(ptr: Ptr[_]): Unit = extern
}

0 comments on commit 6373296

Please sign in to comment.