make maxflow header compatible with the license checking mecanism

This commit is contained in:
Sébastien Loriot 2017-11-11 19:54:02 +01:00
parent 39e4fdd3ed
commit 5ea5bc95fd
1 changed files with 10 additions and 0 deletions

View File

@ -242,6 +242,16 @@ void main()
#ifndef __MAXFLOW_BLOCK_H__ #ifndef __MAXFLOW_BLOCK_H__
#define __MAXFLOW_BLOCK_H__ #define __MAXFLOW_BLOCK_H__
# if defined(CGAL_LICENSE_WARNING)
CGAL_pragma_warning("\nYou use the MaxFlow package of Vladimir Kolmogorov under the terms of the GPLv2+.")
# endif // CGAL_LICENSE_WARNING
# ifdef CGAL_LICENSE_ERROR
# error "You use the the MaxFlow package of Vladimir Kolmogorov under the terms of the GPLv2+.\
You get this error, as you defined CGAL_LICENSE_ERROR."
# endif // CGAL_LICENSE_ERROR
#include <stdlib.h> #include <stdlib.h>
/***********************************************************************/ /***********************************************************************/