Skip to content

Commit

Permalink
GetProcAddress always takes ANSI C strings
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Oct 17, 2018
1 parent d098cb4 commit 5054a06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ffnvcodec.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ includedir=${prefix}/include

Name: ffnvcodec
Description: FFmpeg version of Nvidia Codec SDK headers
Version: 8.2.15.2
Version: 8.2.15.3
Cflags: -I${includedir}
2 changes: 1 addition & 1 deletion include/ffnvcodec/dynlink_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#if !defined(FFNV_LOAD_FUNC) || !defined(FFNV_SYM_FUNC)
# ifdef _WIN32
# define FFNV_LOAD_FUNC(path) LoadLibrary(TEXT(path))
# define FFNV_SYM_FUNC(lib, sym) GetProcAddress((lib), TEXT(sym))
# define FFNV_SYM_FUNC(lib, sym) GetProcAddress((lib), (sym))
# define FFNV_FREE_FUNC(lib) FreeLibrary(lib)
# else
# include <dlfcn.h>
Expand Down

0 comments on commit 5054a06

Please sign in to comment.