Made PIL_time_utildefines self-sufficient
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 26 Sep 2013 21:27:23 +0000 (21:27 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 26 Sep 2013 21:27:23 +0000 (21:27 +0000)
Meaning it's enough to only include PIL_time_utildefines for
benchmarking, no need to worry about other header dependencies.

source/blender/blenlib/PIL_time_utildefines.h

index c253aba875f53d0b19832fef8e9d366ffdde2f85..135817f6a17d79d4d948578232b9749042ffa389 100644 (file)
 /** \file blender/blenlib/PIL_time_utildefines.h
  *  \ingroup bli
  *  \brief Utility defines for timing/benchmarks.
 /** \file blender/blenlib/PIL_time_utildefines.h
  *  \ingroup bli
  *  \brief Utility defines for timing/benchmarks.
- *
- * \note requires BLI_utildefines.h for 'AT'.
  */
 
 #ifndef __PIL_TIME_UTILDEFINES_H__
 #define __PIL_TIME_UTILDEFINES_H__
 
  */
 
 #ifndef __PIL_TIME_UTILDEFINES_H__
 #define __PIL_TIME_UTILDEFINES_H__
 
+#include "PIL_time.h"  /* for PIL_check_seconds_timer */
+#include "BLI_utildefines.h"  /* for AT */
+
 #define TIMEIT_START(var)                                                     \
        {                                                                         \
                double _timeit_##var = PIL_check_seconds_timer();                     \
 #define TIMEIT_START(var)                                                     \
        {                                                                         \
                double _timeit_##var = PIL_check_seconds_timer();                     \