MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
Including src/gui/opengl/gl_core_3_3.h should automatically include windows.h if APIENTRY is not defined. Still, some libraries (e.g., the latest versions of Qt) define this macro without including windows.h in their public headers (to avoid polluting the global namespace).
Since this issue is currently preventing the merging of PRs on dev, a quick solution that explicitly includes <windows.h> is added to deal with this.
Ideally, no public header should automatically include windows.h, so a more robust approach is warranted here. We could either wrap the header to prevent the propagation of windows.h or replace it with something else. Will try to address this in a future PR.
Including
src/gui/opengl/gl_core_3_3.h
should automatically includewindows.h
ifAPIENTRY
is not defined. Still, some libraries (e.g., the latest versions of Qt) define this macro without includingwindows.h
in their public headers (to avoid polluting the global namespace). Since this issue is currently preventing the merging of PRs ondev
, a quick solution that explicitly includes<windows.h>
is added to deal with this. Ideally, no public header should automatically includewindows.h
, so a more robust approach is warranted here. We could either wrap the header to prevent the propagation ofwindows.h
or replace it with something else. Will try to address this in a future PR.