Skip to content

Add missing csdtio include

Fixes compilation:

/home/user/vkpipeline-db/vkpipeline_db.cpp: In function ‘const char* get_capture_path()’:
/home/user/vkpipeline-db/vkpipeline_db.cpp:787:21: error: ‘stderr’ was not declared in this scope
  787 |             fprintf(stderr, "Failed to capture because "
      |                     ^~~~~~
/home/user/vkpipeline-db/vkpipeline_db.cpp:38:1: note: ‘stderr’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
   37 | #include "serialize.h"
  +++ |+#include <cstdio>
   38 | 
/home/user/vkpipeline-db/vkpipeline_db.cpp:787:13: error: ‘fprintf’ was not declared in this scope
  787 |             fprintf(stderr, "Failed to capture because "
      |             ^~~~~~~
/home/user/vkpipeline-db/vkpipeline_db.cpp: In function ‘int capture_pipeline(pipeline_info*)’:
/home/user/vkpipeline-db/vkpipeline_db.cpp:825:5: error: ‘snprintf’ was not declared in this scope
  825 |     snprintf(filename, sizeof(filename),
      |     ^~~~~~~~
/home/user/vkpipeline-db/vkpipeline_db.cpp:825:5: note: ‘snprintf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/home/user/vkpipeline-db/vkpipeline_db.cpp:830:9: error: ‘perror’ was not declared in this scope; did you mean ‘strerror’?
  830 |         perror("open");
      |         ^~~~~~
      |         strerror
/home/user/vkpipeline-db/vkpipeline_db.cpp:836:9: error: ‘perror’ was not declared in this scope; did you mean ‘strerror’?
  836 |         perror("write");
      |         ^~~~~~
      |         strerror

Merge request reports

Loading