Skip to content

Commit

Permalink
Guard against multiple definitions of CUuuid
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Oct 21, 2018
1 parent be0954a commit e17063a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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.1.24.4
Version: 8.1.24.5
Cflags: -I${includedir}
3 changes: 3 additions & 0 deletions include/ffnvcodec/dynlink_cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ typedef enum CUexternalMemoryHandleType_enum {
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE = 5,
} CUexternalMemoryHandleType;

#ifndef CU_UUID_HAS_BEEN_DEFINED
#define CU_UUID_HAS_BEEN_DEFINED
typedef struct CUuuid_st {
char bytes[16];
} CUuuid;
#endif

typedef struct CUDA_MEMCPY2D_st {
size_t srcXInBytes;
Expand Down

0 comments on commit e17063a

Please sign in to comment.