summaryrefslogtreecommitdiffhomepage
path: root/include/stc/csview.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-05 18:21:17 +0100
committerTyge Løvset <[email protected]>2023-02-05 18:21:17 +0100
commit217865ae413f9cfcc72af176ec7e98f418bddbea (patch)
treee862dddb60fe69fbdb91b14de1f4e44cd7088b43 /include/stc/csview.h
parentb21be5762a5037abbd9aa820d204f0825382194d (diff)
downloadSTC-modified-217865ae413f9cfcc72af176ec7e98f418bddbea.tar.gz
STC-modified-217865ae413f9cfcc72af176ec7e98f418bddbea.zip
Fixed linking parameters i_extern.
Diffstat (limited to 'include/stc/csview.h')
-rw-r--r--include/stc/csview.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/csview.h b/include/stc/csview.h
index a30672cd..aa519fec 100644
--- a/include/stc/csview.h
+++ b/include/stc/csview.h
@@ -159,7 +159,7 @@ STC_INLINE bool csview_eq(const csview* x, const csview* y)
STC_API uint64_t csview_hash(const csview *self);
/* -------------------------- IMPLEMENTATION ------------------------- */
-#if defined(i_implement)
+#if defined(i_static) || defined(i_extern)
STC_DEF intptr_t csview_find_sv(csview sv, csview search) {
char* res = cstrnstrn(sv.str, search.str, sv.size, search.size);