]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-bottom-half/cloudlibc/src/libc/unistd/lseek.c
Remove __wasilibc_unmodified_upstream markers from libc-bottom-half.
[wasi-libc.git] / libc-bottom-half / cloudlibc / src / libc / unistd / lseek.c
index cb5d995b3ce3394901c3c9e995dbc67553019b48..0dfc49e4c9cebc2c2aa76bc70a43c5d18a1dbf58 100644 (file)
@@ -11,11 +11,7 @@ static_assert(SEEK_CUR == __WASI_WHENCE_CUR, "Value mismatch");
 static_assert(SEEK_END == __WASI_WHENCE_END, "Value mismatch");
 static_assert(SEEK_SET == __WASI_WHENCE_SET, "Value mismatch");
 
-#ifdef __wasilibc_unmodified_upstream // Provide an __lseek entry point
-off_t lseek(int fildes, off_t offset, int whence) {
-#else
 off_t __lseek(int fildes, off_t offset, int whence) {
-#endif
   __wasi_filesize_t new_offset;
   __wasi_errno_t error =
       __wasi_fd_seek(fildes, offset, whence, &new_offset);
@@ -26,7 +22,4 @@ off_t __lseek(int fildes, off_t offset, int whence) {
   return new_offset;
 }
 
-#ifdef __wasilibc_unmodified_upstream // Provide an __lseek entry point
-#else
 extern __typeof(__lseek) lseek __attribute__((weak, alias("__lseek")));
-#endif