File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
examples/protonect/include/libfreenect2 Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 2727#ifndef ASYNC_PACKET_PROCESSOR_H_
2828#define ASYNC_PACKET_PROCESSOR_H_
2929
30- #include < libfreenect2/config.h>
3130#include < libfreenect2/threading.h>
3231#include < libfreenect2/packet_processor.h>
3332
3433namespace libfreenect2
3534{
3635
3736template <typename PacketT>
38- class LIBFREENECT2_API AsyncPacketProcessor : public PacketProcessor<PacketT>
37+ class AsyncPacketProcessor : public PacketProcessor <PacketT>
3938{
4039public:
4140 typedef PacketProcessor<PacketT>* PacketProcessorPtr;
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ struct LIBFREENECT2_API DepthPacket
4444 size_t buffer_length;
4545};
4646
47+ // explicit instantiation and export to make vsc++ happy
48+ template class LIBFREENECT2_API PacketProcessor<DepthPacket>;
4749typedef PacketProcessor<DepthPacket> BaseDepthPacketProcessor;
4850
4951class LIBFREENECT2_API DepthPacketProcessor : public BaseDepthPacketProcessor
Original file line number Diff line number Diff line change 2929
3030#include < GL/glew.h>
3131#include < GLFW/glfw3.h>
32+ #include < libfreenect2/config.h>
3233
3334namespace libfreenect2
3435{
3536
36- struct OpenGLContext
37+ struct LIBFREENECT2_API OpenGLContext
3738{
3839 GLFWwindow *glfw_ctx;
3940 GLEWContext *glew_ctx;
@@ -48,7 +49,7 @@ struct OpenGLContext
4849};
4950
5051
51- struct ChangeCurrentOpenGLContext
52+ struct LIBFREENECT2_API ChangeCurrentOpenGLContext
5253{
5354 const OpenGLContext *last_ctx;
5455
@@ -58,6 +59,6 @@ struct ChangeCurrentOpenGLContext
5859
5960} /* namespace libfreenect2 */
6061
61- GLEWContext *glewGetContext ();
62+ LIBFREENECT2_API GLEWContext *glewGetContext ();
6263
6364#endif /* OPENGL_H_ */
Original file line number Diff line number Diff line change 2727#ifndef PACKET_PROCESSOR_H_
2828#define PACKET_PROCESSOR_H_
2929
30- #include < libfreenect2/config.h>
31-
3230namespace libfreenect2
3331{
3432
3533template <typename PacketT>
36- class LIBFREENECT2_API PacketProcessor
34+ class PacketProcessor
3735{
3836public:
3937 virtual ~PacketProcessor () {}
@@ -43,7 +41,7 @@ class LIBFREENECT2_API PacketProcessor
4341};
4442
4543template <typename PacketT>
46- class LIBFREENECT2_API NoopPacketProcessor : public PacketProcessor<PacketT>
44+ class NoopPacketProcessor : public PacketProcessor <PacketT>
4745{
4846public:
4947 NoopPacketProcessor () {}
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ struct LIBFREENECT2_API RgbPacket
4545 size_t jpeg_buffer_length;
4646};
4747
48+ // explicit instantiation and export to make vsc++ happy
49+ template class LIBFREENECT2_API PacketProcessor<RgbPacket>;
4850typedef PacketProcessor<RgbPacket> BaseRgbPacketProcessor;
4951
5052class LIBFREENECT2_API RgbPacketProcessor : public BaseRgbPacketProcessor
You can’t perform that action at this time.
0 commit comments