Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • videolan/vlc
  • chouquette/vlc
  • bakiewicz.marek122/vlc
  • devnexen/vlc
  • rohanrajpal/vlc
  • blurrrb/vlc
  • gsoc/gsoc2019/darkapex/vlc
  • b1ue/vlc
  • fkuehne/vlc
  • magsoft/vlc
  • chub/vlc
  • cramiro9/vlc
  • robUx4/vlc
  • rom1v/vlc
  • akshayaky/vlc
  • tmk907/vlc
  • akymaster/vlc
  • govind.sharma/vlc
  • psilokos/vlc
  • xjbeta/vlc
  • jahan/vlc
  • 1480c1/vlc
  • amanchande/vlc
  • aaqib/vlc
  • rist/vlc
  • apol/vlc
  • mindfreeze/vlc
  • alexandre-janniaux/vlc
  • sandsmark/vlc
  • jagannatharjun/vlc
  • gsoc/gsoc2020/matiaslgonzalez/vlc
  • gsoc/gsoc2020/jagannatharjun/vlc
  • mstorsjo/vlc
  • gsoc/gsoc2020/vedenta/vlc
  • gsoc/gsoc2020/arnav-ishaan/vlc
  • gsoc/gsoc2020/andreduong/vlc
  • fuzun/vlc
  • gsoc/gsoc2020/vatsin/vlc
  • gsoc/gsoc2020/sagid/vlc
  • yaron/vlc
  • Phoenix/vlc
  • Garf/vlc
  • ePiratWorkarounds/vlc
  • tguillem/vlc
  • jnqnfe/vlc
  • mdc/vlc
  • Vedaa/vlc
  • rasa/vlc
  • quink/vlc
  • yealo/vlc
  • aleksey_ak/vlc
  • ePirat/vlc
  • ilya.yanok/vlc
  • asenat/vlc
  • m/vlc
  • bunjee/vlc
  • BLumia/vlc
  • sagudev/vlc
  • hamedmonji30/vlc
  • nullgemm/vlc
  • DivyamAhuja/vlc
  • thesamesam/vlc
  • dag7/vlc
  • snehil101/vlc
  • haasn/vlc
  • jbk/vlc
  • ValZapod/vlc
  • mfkl/vlc
  • WangChuan/vlc
  • core1024/vlc
  • GhostVaibhav/vlc
  • dfuhrmann/vlc
  • davide.prade/vlc
  • tmatth/vlc
  • Courmisch/vlc
  • zouya/vlc
  • hpi/vlc
  • EwoutH/vlc
  • aleung27/vlc
  • hengwu0/vlc
  • saladin/vlc
  • ashuio/vlc
  • richselwood/vlc
  • verma16Ayush/vlc
  • chemicalflash/vlc
  • PoignardAzur/vlc
  • huangjieNT/vlc
  • Blake-Haydon/vlc
  • AnuthaDev/vlc
  • gsoc/gsoc2021/mpd/vlc
  • nicolas_lequec/vlc
  • sambassaly/vlc
  • thresh/vlc
  • bonniegong/vlc
  • myaashish/vlc
  • stavros.vagionitis/vlc
  • ileoo/vlc
  • louis-santucci/vlc
  • cchristiansen/vlc
  • sabyasachi07/vlc
  • AbduAmeen/vlc
  • ashishb0410/vlc
  • urbanhusky/vlc
  • davidepietrasanta/vlc
  • riksleutelstad/vlc
  • jeremyVignelles/vlc
  • komh/vlc
  • iamjithinjohn/vlc
  • JohannesKauffmann/vlc2
  • kunglao/vlc
  • natzberg/vlc
  • jill/vlc
  • cwendling/vlc
  • adufou/vlc
  • ErwanAirone/vlc
  • HasinduDilshan10/vlc
  • vagrantc/vlc
  • rafiv/macos-bigsur-icon
  • Aymeriic/vlc
  • saranshg20/vlc
  • metzlove24/vlc
  • linkfanel/vlc
  • Ds886/vlc
  • metehan-arslan/vlc
  • Skantes/vlc
  • kgsandundananjaya96/vlc
  • mitchcapper/vlc
  • advaitgupta/vlc
  • StefanBruens/vlc
  • ratajs/vlc
  • T.M.F.B.3761/vlc
  • m222059/vlc
  • casemerrick/vlc
  • joshuaword2alt/vlc
  • sjwaddy/vlc
  • dima/vlc
  • Ybalrid/vlc
  • umxprime/vlc
  • eschmidt/vlc
  • vannieuwenhuysenmichelle/vlc
  • badcf00d/vlc
  • wesinator/vlc
  • louis/vlc
  • xqq/vlc
  • EmperorYP7/vlc
  • NicoLiam/vlc
  • loveleen/vlc
  • rofferom/vlc
  • rbultje/vlc
  • TheUnamed/vlc
  • pratiksharma341/vlc
  • Saurab17/vlc
  • purist.coder/vlc
  • Shuicheng/vlc
  • mdrrubel292/vlc
  • silverbleu00/vlc
  • metif12/vlc
  • asher-m/vlc
  • jeffk/vlc
  • Brandonbr1/vlc
  • beautyyuyanli/vlc
  • rego21/vlc
  • muyangren907/vlc
  • collectionbylawrencejason/vlc
  • evelez/vlc
  • GSMgeeth/vlc
  • Oneric/vlc
  • TJ5/vlc
  • XuanTung95/vlc
  • darrenjenny21/vlc
  • Trenly/vlc
  • RockyTDR/vlc
  • mjakubowski/vlc
  • caprica/vlc
  • ForteFrankie/vlc
  • seannamiller19/vlc
  • junlon2006/vlc
  • kiwiren6666/vlc
  • iuseiphonexs/vlc
  • fenngtun/vlc
  • Rajdutt999/vlc
  • typx/vlc
  • leon.vitanos/vlc
  • robertogarci0938/vlc
  • gsoc/gsoc2022/luc65r/vlc-mpd
  • skeller/vlc
  • MCJack123/vlc
  • luc65r/vlc-mpd
  • popov895/vlc
  • claucambra/vlc
  • brad/vlc
  • matthewmurua88/vlc
  • Tomas8874/vlc
  • philenotfound/vlc
  • makita-do3/vlc
  • LZXCorp/vlc
  • mar0x/vlc
  • senojetkennedy0102/vlc
  • shaneb243/vlc
  • ahmadbader/vlc
  • rajduttcse26/vlc-audio-filters
  • Juniorzito8415/vlc
  • achernyakov/vlc
  • lucasjetgroup/vlc
  • pupdoggy666/vlc
  • gmde9363/vlc
  • alexnwayne/vlc
  • bahareebrahimi781/vlc
  • hamad633666/vlc
  • umghof3112/vlc
  • joe0199771874/vlc
  • Octocats66666666/vlc
  • jjm_223/vlc
  • btech10110.19/vlc
  • sunnykfc028/vlc-audio-filters
  • loic/vlc
  • nguyenminhducmx1/vlc
  • JanekKrueger/vlc
  • bstubbington2/vlc
  • rcombs/vlc
  • Ordissimo/vlc
  • king7532/vlc
  • noobsauce101/vlc
  • schong0525/vlc
  • myQwil/vlc
  • apisbg91/vlc
  • geeboy0101017/vlc
  • kim.faughey/vlc
  • nurupo/vlc
  • yyusea/vlc
  • 0711235879.khco/vlc
  • ialo/vlc
  • iloveyeye2/vlc
  • gdtdftdqtd/vlc
  • leandroconsiglio/vlc
  • AndyHTML2012/vlc
  • ncz/vlc
  • lucenticus/vlc
  • knr1931/vlc
  • kjoonlee/vlc
  • chandrakant100/vlc-qt
  • johge42/vlc
  • polter/vlc
  • hexchain/vlc
  • Tushwrld/vlc
  • mztea928/vlc
  • jbelloncastro/vlc
  • alvinhochun/vlc
  • ghostpiratecrow/vlc
  • ujjwaltwitx/vlc
  • alexsonarin06/vlc
  • adrianbon76/vlc
  • altsod/vlc
  • damien.lucas44/vlc
  • dmytrivtaisa/vlc
  • utk202/vlc
  • aaxhrj/vlc
  • thomas.hermes/vlc
  • structurenewworldorder/vlc
  • slomo/vlc
  • wantlamy/vlc
  • musc.o3cminc/vlc
  • thebarshablog/vlc
  • kerrick/vlc
  • kratos142518/vlc
  • leogps/vlc
  • vacantron/vlc
  • luna_koly/vlc
  • Ratio2/vlc
  • anuoshemohammad/vlc
  • apsun/vlc
  • aaa1115910/vlc
  • alimotmoyo/vlc
  • Ambossmann/vlc
  • Sam-LearnsToCode/vlc
  • Chilledheart/vlc
  • Labnann/vlc
  • ktcoooot1/vlc
  • mohit-marathe/vlc
  • johnddx/vlc
  • manstabuk/vlc
  • Omar-ahmed314/vlc
  • vineethkm/vlc
  • 9Enemi86/vlc
  • radoslav.m.panteleev/vlc
  • ashishami2002/vlc
  • Corbax/vlc
  • firnasahmed/vlc
  • pelayarmalam4/vlc
  • c0ff330k/vlc
  • shikhindahikar/vlc
  • l342723951/vlc
  • christianschwandner/vlc
  • douniwan5788/vlc
  • 7damian7/vlc
  • ferdnyc/vlc
  • f.ales1/vlc
  • pandagby/vlc
  • BaaBaa/vlc
  • jewe37/vlc
  • w00drow/vlc
  • russelltg/vlc
  • ironicallygod/vlc
  • soumyaDghosh/vlc
  • linzihao1999/vlc
  • deyayush6/vlc
  • mibi88/vlc
  • newabdallah10/vlc
  • jhorbincolombia/vlc
  • rimvihaqueshupto/vlc
  • andrewkhon98/vlc
  • fab78/vlc
  • lapaz17/vlc
  • amanna13/vlc
  • mdakram28/vlc
  • 07jw1980/vlc
  • sohamgupta/vlc
  • Eson-Jia1/vlc
  • Sumou/vlc
  • vikram-kangotra/vlc
  • chalice191/vlc
  • olivercalder/vlc
  • aaasg4001/vlc
  • zipdox/vlc
  • kwizart/vlc
  • Dragon-S/vlc
  • jdemeule/vlc
  • gabriel_lt/vlc
  • locutusofborg/vlc
  • sammirata/vlc-librist
  • another/vlc
  • Benjamin_Loison/vlc
  • ahmedmoselhi/vlc
  • petergaal/vlc
  • huynhsontung/vlc
  • dariusmihut/vlc
  • tvermaashutosh/vlc
  • buti/vlc
  • Niram7777/vlc
  • rohan-here/vlc
  • balaji-sivasakthi/vlc
  • rlindner81/vlc
  • Kakadus/vlc
  • djain/vlc
  • ABBurmeister/vlc
  • craighuggins/vlc
  • orbea/vlc
  • maxos/vlc
  • aakarshmj/vlc
  • kblaschke/vlc
  • ankitm/vlc
  • advait-0/vlc
  • mohak2003/vlc
  • yselkowitz/vlc
  • AZM999/vlc-azm
  • andrey.turkin/vlc
  • Disha-Baghel/vlc
  • nowrep/vlc
  • Apeng/vlc
  • Choucroute_melba/vlc
  • autra/vlc
  • eclipseo/vlc
  • fhuber/vlc
  • olafhering/vlc
  • sdasda7777/vlc
  • 1div0/vlc
  • skosnits/vlc-extended-playlist-support
  • dnicolson/vlc
  • Timshel/vlc
  • octopols/vlc
  • MangalK/vlc
  • nima64/vlc
  • misawai/vlc
  • Alexander-Wilms/vlc
  • Maxime2/vlc-fork-for-visualizer
  • ww/vlc
  • jeske/vlc
  • sgross-emlix/vlc
  • morenonatural/vlc
  • freakingLovesVLC/vlc
  • borisgolovnev/vlc
  • mpromonet/vlc
  • diogo.simao-marques/vlc
  • masstock/vlc
  • pratikpatel8982/vlc
  • hugok79/vlc
  • longervision/vlc
  • abhiudaysurya/vlc
  • rishabhgarg/vlc
  • tumic/vlc
  • cart/vlc
  • shubham442/vlc
  • Aditya692005/vlc
  • sammirata/vlc4
  • syrykh/vlc
  • Vvorcun/macos-new-icon
  • AyaanshC/vlc
  • nasso/vlc
  • Quark/vlc
  • sebastinas/vlc
  • rhstone/vlc
  • talregev/vlc
  • Managor/vlc
  • abdsaber000/vlc
  • falbrechtskirchinger/vlc
  • b.sullender/vlc
  • hulxv/vlc
  • zyad-ayad/vlc
  • shocknovaa/vlc
  • gremlinflat/vlc
  • Pratham24D/vlc
411 results
Show changes
Commits on Source (5)
  • Martin Storsjö's avatar
    contrib: upnp: Add a patch to avoid implicit declarations of gettimeofday on mingw · 83d7194d
    Martin Storsjö authored
    This patch has been sent upstream at
    https://github.com/pupnp/pupnp/pull/387, but hasn't been acted
    on by upstream yet.
    
    In mingw headers, both time.h and sys/time.h define
    struct timezone and _TIMEZONE_DEFINED - however only one of them,
    sys/time.h, define gettimeofday. Thus, if time.h had been included
    before, we'd have _TIMEZONE_DEFINED defined, and we'd omit our own
    declaration of the gettimeofday function too, leading to calls to
    an undeclared function.
    
    (If the actual sys/time.h header is included, its declaration of
    the gettimeofday function does conflict with both the declaration
    and the definition of upnp's gettimeofday, due to details like missing
    the restrict attribute on pointers. But that issue already existed
    and is unaffected by this patch.)
    
    Since Clang 15 (which still is under development, so this may
    still change before it's released) [1], implicit function
    declarations are a hard error by default, when building code
    in C99 mode (or newer).
    
    [1] https://github.com/llvm/llvm-project/commit/7d644e1215b376ec5e915df9ea2eeb56e2d94626
    83d7194d
  • Martin Storsjö's avatar
    contrib: libshout: Apply a patch to avoid implicit declarations of gettimeofday · 9e095923
    Martin Storsjö authored
    This patch has been sent upstream at
    https://gitlab.xiph.org/xiph/icecast-common/-/merge_requests/2
    but hasn't been acted upon there yet.
    
    When building for a mingw target, HAVE_GETTIMEOFDAY is defined
    (as the gettimeofday function was found), but the #ifdef _WIN32 #else
    block never tried to include <sys/time.h> (which provides the
    declaration) and/or <time.h> for such targets. This caused
    gettimeofday to be used without a prior declaration.
    
    This has been visible as an easily overlooked warning, but Clang 15
    changed this into a fatal error by default, when building in C99
    mode (or newer). [1] (While Clang 15 still is under development, this
    may still change before it's released, but the warning is valid
    in any case.)
    
    Decouple including of those headers from the #ifdef _WIN32 #else
    block and just check their corresponding availability defines.
    
    [1] https://github.com/llvm/llvm-project/commit/7d644e1215b376ec5e915df9ea2eeb56e2d94626
    9e095923
  • Martin Storsjö's avatar
    contrib: librist: Apply a patch to the bundled mbedtls to avoid implicit... · a7a4aae3
    Martin Storsjö authored
    contrib: librist: Apply a patch to the bundled mbedtls to avoid implicit declarations of gettimeofday
    
    This patch has been sent upstream at
    https://github.com/Mbed-TLS/mbedtls/pull/5770 but hasn't been
    acted upon yet. As it hasn't been handled in upstream mbedtls,
    I haven't sent it to librist (which bundles mbedtls) yet.
    
    The QueryPerformanceCounter implementation previously was within
    defined(_MSC_VER), but it works just as well on other Windows
    toolchains, like mingw.
    
    For most common mingw x86 build configurations, one of the earlier
    inline assembly implementations would end up used, but for non-x86
    (arm, aarch64), it would end up falling back on the gettimeofday
    implementation.
    
    This implementation did build successfully (as mingw toolchains do
    provide gettimeofday, contrary to MSVC), but the header providing
    gettimeofday, <sys/time.h>, wasn't ever included when building
    targeting Windows - thus the function was called without a proper
    declaration.
    
    Clang 15 changes such implicit function declarations into a hard
    error by default, when building in C99 mode (or newer) [1].
    (While Clang 15 still is under development, this may still change
    before it's released, but it's a valid issue in any case.)
    
    [1] https://github.com/llvm/llvm-project/commit/7d644e1215b376ec5e915df9ea2eeb56e2d94626
    a7a4aae3
  • Martin Storsjö's avatar
    contrib: zvbi: Add a custom patch to avoid implicit declarations of functions on Windows · 68efd7e5
    Martin Storsjö authored
    Since Clang 15 (which still is under development, so this may
    still change before it's released) [1], implicit function
    declarations are a hard error by default, when building code
    in C99 mode (or newer).
    
    [1] https://github.com/llvm/llvm-project/commit/7d644e1215b376ec5e915df9ea2eeb56e2d94626
    
    The upstream zvbi code doesn't seem to have any support for
    building for Windows at all, therefore not trying to upstream it.
    
    On Windows, the <io.h> header is needed for getting declarations
    of functions like open/read/write/close. The zvbi project has a
    header of its own, named io.h, and it resides on a path added with
    -I, so any includes of <io.h> ends up including this header instead
    of the system header. Therefore, add an #include_next <io.h> which
    should bring in the system header and its declarations too.
    
    Adjust ifdefs to ifdef out larger bits of the code that contained
    calls to functions that simply don't exist on Windows, like
    ioctl, munmap etc. Previously, the zvbi library has been built with
    implicit declarations of those functions, and the static library has
    had undefined references to them. As long as those object files
    from the static library haven't been included in the link, this issue
    has been unnoticed so far.
    
    For the function ffs(), which also was undefined on Windows,
    provide a _BitScanForward based reimplementation. This also resides
    in a file that doesn't end up included in the end, but for this
    case it's just as easy to provide a working implementation as it
    would be to ifdef it out.
    68efd7e5
  • Martin Storsjö's avatar
    contrib: regex: Apply a patch to add missing function declarations · 0e836b4e
    Martin Storsjö authored
    This code seems to be a stale copy of a regex library from glibc,
    thus not sending the patch further upstream.
    
    In some configurations, this library seems to choose not to include
    standard C headers but declare the functions manually (without a
    proper prototype though!). In this case, it already declared malloc
    and realloc, but didn't declare abort and free in the same way.
    
    Just add declarations of these functions in the same way - while
    the most correct path forward would be to actually make it use
    the proper system headers.
    0e836b4e
......@@ -21,6 +21,7 @@ $(TARBALLS)/librist-$(LIBRIST_VERSION).tar.gz:
librist: librist-$(LIBRIST_VERSION).tar.gz .sum-librist
$(UNPACK)
$(APPLY) $(SRC)/librist/librist-fix-libcjson-meson.patch
$(APPLY) $(SRC)/librist/win32-timing.patch
$(MOVE)
.librist: librist crossfile.meson
......
--- librist/contrib/mbedtls/library/timing.c.orig 2022-04-21 15:15:32.479888797 +0300
+++ librist/contrib/mbedtls/library/timing.c 2022-04-21 15:15:46.615589264 +0300
@@ -195,7 +195,7 @@
#endif /* !HAVE_HARDCLOCK && MBEDTLS_HAVE_ASM &&
__GNUC__ && __ia64__ */
-#if !defined(HAVE_HARDCLOCK) && defined(_MSC_VER) && \
+#if !defined(HAVE_HARDCLOCK) && defined(_WIN32) && \
!defined(EFIX64) && !defined(EFI32)
#define HAVE_HARDCLOCK
--- regex/regex.c.orig 2022-04-21 17:46:06.786845467 +0300
+++ regex/regex.c 2022-04-21 16:46:41.670051683 +0300
@@ -127,6 +127,8 @@
# else
char *malloc ();
char *realloc ();
+void abort ();
+void free ();
# endif
/* When used in Emacs's lib-src, we need to get bzero and bcopy somehow.
......@@ -15,6 +15,7 @@ $(TARBALLS)/regex-$(REGEX_VERSION).tar.gz:
regex: regex-$(REGEX_VERSION).tar.gz .sum-regex
$(UNPACK)
$(APPLY) $(SRC)/regex/no-docs.patch
$(APPLY) $(SRC)/regex/decls.patch
$(MOVE)
.regex: regex
......
......@@ -28,6 +28,7 @@ libshout: libshout-$(SHOUT_VERSION).tar.gz .sum-shout
$(APPLY) $(SRC)/shout/no-examples.patch
$(APPLY) $(SRC)/shout/no-force-libwsock.patch
$(APPLY) $(SRC)/shout/should-win32-ws2tcpip.patch
$(APPLY) $(SRC)/shout/win32-gettimeofday.patch
$(call pkg_static,"shout.pc.in")
$(UPDATE_AUTOCONFIG)
$(MOVE)
......
--- libshout/src/common/timing/timing.c.orig 2022-04-21 15:00:39.729501137 +0300
+++ libshout/src/common/timing/timing.c 2022-04-21 15:00:43.565527749 +0300
@@ -37,6 +37,9 @@
#include <mmsystem.h>
#include <winsock2.h>
#else
+#include <unistd.h>
+#endif
+
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
@@ -48,9 +51,6 @@
# endif
#endif
-#include <unistd.h>
-#endif
-
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
......@@ -42,6 +42,7 @@ ifdef HAVE_WIN32
$(APPLY) $(SRC)/upnp/libupnp-win32.patch
$(APPLY) $(SRC)/upnp/libupnp-win64.patch
$(APPLY) $(SRC)/upnp/windows-version-inet.patch
$(APPLY) $(SRC)/upnp/win32-gettimeofday.patch
endif
ifdef HAVE_LINUX
ifndef HAVE_ANDROID
......
--- upnp/upnp/src/threadutil/ThreadPool.h.orig 2022-04-21 15:07:27.194156972 +0300
+++ upnp/upnp/src/threadutil/ThreadPool.h 2022-04-21 15:07:31.026076222 +0300
@@ -54,8 +54,8 @@
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
};
- int gettimeofday(struct timeval *tv, struct timezone *tz);
#endif
+ int gettimeofday(struct timeval *tv, struct timezone *tz);
#else /* _WIN32 */
#include <sys/param.h>
#include <sys/time.h> /* for gettimeofday() */
......@@ -20,6 +20,7 @@ zvbi: zvbi-$(ZVBI_VERSION).tar.bz2 .sum-zvbi
$(APPLY) $(SRC)/zvbi/zvbi-fix-static-linking.patch
ifdef HAVE_WIN32
$(APPLY) $(SRC)/zvbi/zvbi-win32.patch
$(APPLY) $(SRC)/zvbi/zvbi-win32-undefined.patch
endif
$(APPLY) $(SRC)/zvbi/zvbi-fix-clang-support.patch
ifdef HAVE_ANDROID
......
--- zvbi/src/io.h.orig 2022-04-27 13:12:22.154124296 +0300
+++ zvbi/src/io.h 2022-04-27 13:12:54.706349113 +0300
@@ -28,6 +28,12 @@
#include "decoder.h"
#include "bit_slicer.h"
+#if defined(_WIN32) && defined(__has_include_next)
+# if __has_include_next(<io.h>)
+# include_next <io.h>
+# endif
+#endif
+
/* Public */
#include <sys/time.h> /* struct timeval */
--- zvbi/src/io.c.orig 2022-04-21 14:52:30.294105422 +0300
+++ zvbi/src/io.c 2022-04-21 14:39:26.424663785 +0300
@@ -556,7 +556,6 @@
return ret;
}
}
-#endif
/* Helper functions to log the communication between the library and drivers.
FIXME remove fp arg, call user log function instead (0.3). */
@@ -777,7 +776,6 @@
return err;
}
-#ifndef _WIN32
/**
* @internal
* Drop-in for mmap(). Logs the request on fp if not NULL.
@@ -827,7 +825,7 @@
return r;
}
-#endif
+
/**
* @internal
* Drop-in for munmap(). Logs the request on fp if not NULL.
@@ -860,6 +858,7 @@
return r;
}
+#endif
/*
Local variables:
--- zvbi/src/page_table.c.orig 2022-04-21 14:52:22.018047995 +0300
+++ zvbi/src/page_table.c 2022-04-21 14:48:38.224494983 +0300
@@ -35,6 +35,17 @@
#include "misc.h"
#include "page_table.h"
+#ifdef _WIN32
+#include <intrin.h>
+static inline int ffs(int value) {
+ unsigned long index;
+ if (value == 0)
+ return 0;
+ _BitScanForward(&index, value);
+ return index + 1;
+}
+#endif
+
/**
* addtogroup PageTable Teletext Page Number Table
* ingroup LowDec
--- zvbi/src/pdc.c.orig 2022-04-21 14:52:12.297980549 +0300
+++ zvbi/src/pdc.c 2022-04-21 14:51:40.529760109 +0300
@@ -35,6 +35,7 @@
#include "pdc.h"
#include "conv.h"
+#ifndef _WIN32
/**
* @addtogroup ProgramID VPS/PDC Program ID
* @ingroup LowDec
@@ -1460,6 +1461,7 @@
}
}
}
+#endif
/*
Local variables: