summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--PKGBUILD2
-rw-r--r--changelog.md5
-rw-r--r--include/u8c/ver.h20
4 files changed, 27 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 44c3956..d6949c7 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ HDRS = \
include/u8c/u8dec.h \
include/u8c/u8enc.h
OBJS = $(SRCS:.c=.o)
-LIB = u8c.so
+LIB = libu8c.so
$(LIB): $(OBJS)
$(CC) $(LDFLAGS) $^ -o $@
$(OBJS): $(HDRS)
diff --git a/PKGBUILD b/PKGBUILD
index 9bee93d..2e258d5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Gabriel Jensen
pkgname=u8c
-pkgver=0.0.0
+pkgver=1.0.0
pkgrel=1
pkgdesc="C library for encoding, decoding, and printing UTF-8 bytes."
arch=("any")
diff --git a/changelog.md b/changelog.md
index 263df7e..3ce2ecc 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,8 @@
+# 1
+
+* Fix Makefile compiling *u8c.so* instead of *libu8c.so*.
+* Add global variable for version control.
+
# 0
* Fork from *luma*.
diff --git a/include/u8c/ver.h b/include/u8c/ver.h
new file mode 100644
index 0000000..3e8af37
--- /dev/null
+++ b/include/u8c/ver.h
@@ -0,0 +1,20 @@
+/*
+ Copyright 2021 Gabriel Jensen
+
+ This file is part of u8c.
+
+ u8c is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+ u8c is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License along with u8c.
+
+ If not, see <https://www.gnu.org/licenses/>.
+*/
+# if !defined(u8c_sym_ver)
+# define u8c_sym_ver
+# include <stdint.h>
+uint_least64_t const inline u8c_debug = 0x1;
+# endif